Just need to help getting this value...
On the Chart Trader it shows the Realized/UnRealized ProfitLoss value..
So once a order is flat you see the RealizedProfitLoss value in the Chart Trader.
How to I get this value once trade is flat...
I've tried a few ways but not coming up as the same...
if (atmStrategyId.Length > 0 && GetAtmStrategyMarketPosition(atmStrategyId) == MarketPosition.Flat)
{
realizedProfitLoss = Instrument.MasterInstrument.RoundToTickSize(GetAtm StrategyRealizedProfitLoss(atmStrategyId));
double totalPnl += realizedProfitLoss
Print("RealizedProfitLoss : " + totalPnl);
}
I also looked into AccountItem.RealizedProfitLoss ...
Is there a method for looking up the Chart Trader RealizedProfitLoss value?
Thanks
Bruce
Comment