if (SystemPerformance.AllTrades.LosingTrades.Count > 1)
{
Trade lastTrade = SystemPerformance.AllTrades.LosingTrades[SystemPerformance.AllTrades.Count - 1];
Print("The last losing trade's profit was " + lastTrade)
Strategy 'weisbackup': Error on calling 'OnBarUpdate' method on bar 75: You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
Comment