This was in the NT help, but the output is calulated only when the trade count = 20. I tried c
// Once the strategy has executed 20 trades loop through the losing trades
// collection and print out the PnL on only long trades
if (Performance.AllTrades.Count == 20)
{
Print("There are " + Performance.AllTrades.LosingTrades.Count + " losing trades.");
foreach (Trade myTrade in Performance.AllTrades.LosingTrades)
{
if (myTrade.Entry.MarketPosition == MarketPosition.Long)
Print(myTrade.ProfitCurrency * myTrade.Quantity);
}
}

Comment