{
// You can change the stop price
if (GetAtmStrategyMarketPosition(atmStrategyId) != MarketPosition.Flat)
AtmStrategyChangeStopTarget(0, Low[0] - 3 * TickSize, "STOP1", atmStrategyId);
}
Hi, I am using the sample ATM strategy code (above) to place stop loss order. But, I would like the stop to be set at order entry and don't want it to change on each bar update. Any suggestions on how i can achieve this?
Currently the stop price is updating on each bar update, so i tried putting the code in OnBarUpdate(), but the stop did not even change at entry, it just used my default ATM strategy settings.
Thanks for your help in advance.

Comment