I'm hung up on the following code:
if (Strategy.isInTrade() == false) {
if (close(-1) < low(-2) &&
close(-2) < low(-3) &&
close(-3) < low(-4) &&
close() > high (-3)) {
nNewTrade = 1; // New Trade Trigger
nsignal = 1; // Buy Signal - Trade Type
}
The first line gets the syntax error message. I use this line at other places in the program ahead of this spot and it seems to be OK. Anybody know how to resolve this?
PS The reply to the "max" post was resolved with the Math.max. Thanks.
if (Strategy.isInTrade() == false) {
if (close(-1) < low(-2) &&
close(-2) < low(-3) &&
close(-3) < low(-4) &&
close() > high (-3)) {
nNewTrade = 1; // New Trade Trigger
nsignal = 1; // Buy Signal - Trade Type
}
The first line gets the syntax error message. I use this line at other places in the program ahead of this spot and it seems to be OK. Anybody know how to resolve this?
PS The reply to the "max" post was resolved with the Math.max. Thanks.
Comment