In the case of being in a Long position, I want to create a stop loss when the Low of a subsequent bar is reached, that is, if I enter a Long I want to exit that Long position when the price reaches the Low of that entry (i.e. signal bar) or any subsequent bar, until a Low is reached. I would like this stop loss signal to last longer than one bar at a time.
I am using (1) Continuim for a data feed, (2) 1 minute bars and (3) a PC w/Windows 10.
I have tried creating a Set to accomplish this but with no success.
The Set I created has a Condition establishing that I'm in a Long position (Position.MarketPosition = MarketPostion.Long) and with
an Action (ExitLongStopMarket(DefaultQuantity, (Low[0] + (-8*TickSize)), "@ExitLongPosition", @"Long");
Unfortunately, this part of the strategy is not working.
This is the end part of a strategy with the rest of the strategy executing correctly.
Any suggestions would be appreciated.

Comment