when launching Atm orders from NT code, i usually want to do 2 contracts, but sometimes only 1
in initialize(), i set DefaultQuantity=2;
then later ...
DefaultQuantity=1;
atmStrategyIdS = GetAtmStrategyUniqueId();
orderIdS = GetAtmStrategyUniqueId();
AtmStrategyCreate(OrderAction.Sell, OrderType.Limit, shortEntry, 0, TimeInForce.Gtc, orderIdS, atmSetup, atmStrategyIdS);
DefaultQuantity=2;
but it still launches a 2-contract order.
what am i missing?
Comment