I have a problem with the unrealized PnL in a strategy analyzer!
This code work's in the real time, but not in backtesting, why?
Thank's in advance
double cumProfit = Performance.AllTrades.TradesPerformance.Currency.C umProfit;
double curPosition = Position.GetProfitLoss( Close[0], PerformanceUnit.Currency );
double totCumProfit = cumProfit + curPosition ;
{
do something
}
Comment