if (SystemPerformance.AllTrades.Count > 1)
{
Trade lastTrade = SystemPerformance.AllTrades.LosingTrades[SystemPerformance.AllTrades.Count - 1];
}
This code is the exact sample provided in the NT8 Language Reference. Once I add this code I get the following error, "Error on calling 'OnBarUpdate' method on bar 314"
This code is executed in the CurrentBars[0] section which is preceeded by the following code;
if(CurrentBars[0] < 22)
return;
What is wrong with my implementation of this code?
Thanks,
Alma
Comment