So first question in Playback mode will the script work and second why is it not working with a ATM entry,
// Store the strategy's prior cumulated realized profit and number of trades
priorTradesCount = SystemPerformance.RealTimeTrades.Count;
priorTradesCumProfit = SystemPerformance.RealTimeTrades.TradesPerformance .Currency.CumProfit;
Print("Total Amount Trades is " + priorTradesCount + " and Total Profit is " + priorTradesCumProfit);
Comment