Calculating the PnL on an ATM Strategy on Ninja 8 is not working the same as on Ninja 7 ;
It looks like GetAtmStrategyRealizedProfitLoss(atmid) is not giving results if the position was previously closed by AtmStrategyClose(atmid).
I attach a simple example code ; it enters long if close>open
and closes the position if it lasts more than 2 bars
( on this case, the reported pnl is zero )
Comment