ExitLong Next Bar at Lowest(Low, Length) Stop;
I gave the system a stop order to get out of a long trade at the lowest low of the last x periods, because if this was taken it would negate the reversal.
My problem is that with this code, it doesn't consider the "lowest low of the last x periods" BEFORE the entry bar, but BEFORE the close of the moment (which keeps moving ahead).
How do you write it so that it will only consider the x periods BEFORE the entry bar? Thank you.
I gave the system a stop order to get out of a long trade at the lowest low of the last x periods, because if this was taken it would negate the reversal.
My problem is that with this code, it doesn't consider the "lowest low of the last x periods" BEFORE the entry bar, but BEFORE the close of the moment (which keeps moving ahead).
How do you write it so that it will only consider the x periods BEFORE the entry bar? Thank you.
