I´m doing a script based on the sampeatmstrategy. The script is running cobc==false.
With every entry there appears also a new entrylimit. I added the flat condition to the conditon from the sample:
if(orderId.Length == 0 && atmStrategyId.Length == 0 && GetAtmStrategyMarketPosition(atmStrategyId) == Cbi.MarketPosition.Flat)
then do limit
But there shouldnt be an additional entry also without (....Flat) because the atmStrategyId.Length is reset to 0 only with (...length>0 and Flat). Strange. I have in the code in onbarupdate same as in the sample.
Why is there with the entry a new entrylimit when I have the condition flat please?
Thank you!
Tony
Comment