AtmStrategyCreate(Cbi.OrderAction.Buy, OrderType.Limit, Low[0], 0, TimeInForce.Day, orderId, "AtmStrategyTemplate", atmStrategyId);
The stoploss value is set to 0. Let's say I want the stoploss to be 10 ticks below the Low[0]. So I use:
AtmStrategyCreate(Cbi.OrderAction.Buy, OrderType.Limit, Low[0], Low[0] - (10 * TickSize), TimeInForce.Day, orderId, "AtmStrategyTemplate", atmStrategyId);
However, when this code executes, the stop is not set to Low[0] - (10 * TickSize), it's set to whatever my stoploss value is in AtmStrategyTemplate. I tried setting a 0 stoploss value in AtmStrategyTemplate, but it won't let me. So how do I get AtmStrategyCreate() to submit the order with the stoploss price I want?
Thanks!
Bryan

Comment