I'm trying to start from some tutorial code given on the Esignal help site, and modify it for my purposes. However every time I try to check the Syntax, I get an error on the following line:
if (Strategy.isInTrade() == true) && (nNewTrade == 1)) {
I don't really see anything wrong here... Now, I do notice that there seems to be an extra closed-parenthesis at the end of the line, but even removing it has had no effect. If I trim the line down to only
if (Strategy.isInTrade() == true)
Then it no longer returns an error.
Does anyone know what's going on here? This is the code from the "Sample Profit Code" system used to show how to build a system with simple profit targets and entry & exit signals.
Thanks,
Jonathan
if (Strategy.isInTrade() == true) && (nNewTrade == 1)) {
I don't really see anything wrong here... Now, I do notice that there seems to be an extra closed-parenthesis at the end of the line, but even removing it has had no effect. If I trim the line down to only
if (Strategy.isInTrade() == true)
Then it no longer returns an error.
Does anyone know what's going on here? This is the code from the "Sample Profit Code" system used to show how to build a system with simple profit targets and entry & exit signals.
Thanks,
Jonathan
Comment