I cannot seem to set DefaultQuantity. (version 6.5) When i set it in the GUI the corresponding ATM template only shows a value of 1 contract.
I am using
atmStrategyId = GetAtmStrategyUniqueId();
orderId = GetAtmStrategyUniqueId();
if (type == LONG)
AtmStrategyCreate(Cbi.Action.Buy, OrderType.Market, 0, 0, TimeInForce.Day, orderId, atmStrategyName, atmStrategyId);
else
AtmStrategyCreate(Cbi.Action.Sell, OrderType.Market, 0, 0, TimeInForce.Day, orderId, atmStrategyName, atmStrategyId);
preceding the above with
DefaultQuantity = 3;
also does not work.
Nor did DefaultQuantity = 3 in Initialize();
The value Prints correctly but is not being communicated to the ATM template

Comment