trying to exit any long trades for when the current low is below the lowest low for the previous 3 days - following my script:
if ((Low[0]) <= (MIN(Low, 3)[1]))
{
ExitLong("", "out-L(p)");
}
when i run the script (and print out the necessary numbers), the script enters a Long position, however does not exit as expected on a bar where the low is clearly below the min of the following 3 days low (the printed out numbers suggest that the condition is true, current low below MIN).
the system behaves as expected for any Short trades where i have something similar (current High above max of previous 3 day highs)
any suggestions as to what i am doing wrong is very much appreciated - thanking you in advance; cheers...
...jurgen
Comment