I'm trying to build a strategy to adjust my trail stop based on the last 5 bars.
How can I find the lowest value (i.e Low[0]) from the previous 5 bars?
Basically I want to adjust my stop based on the lowest of the previous 5 bar and adjust my stop to that low - 5 ticks for example.
Please let me know how i can do this without writing a whole bunch of if statements. Is there a min() function ?
Comment