I am wanting to use MIN of the last 5 bars as a stop loss upon entry into a position. However, as new bars form, MIN changes. Is there a way I can dictate the strategy to set the stop loss based on the MIN(5) of the entry bar? I want the Stop to stay static. Similar to the way an ATM strategy would work while being dynamic to the situation.
I am currently assigning a stopmode = 0 (user variable) upon entry and dictating that "if stopmode = 0, then set a stop market order at the MIN(5)(Low)"
Thanks,
Dave
Comment