I am trying to print my realized PNL to the output window by putting it in the if (atmStrategyId.Length > 0){} condition and also in the beginning of OnBarUpdate() but it always outputs a 0. note that the GetAtmStrategyUnrealizedProfitLoss(atmStrategyId) works fine.
I couldn't find this issue discussed in the forums....can someone make a suggestion on how i can print the realized PNL of an ATM strategy?

Comment