i have created a strategy and i need to access informations about closed trades.
could you confirm that :
- SystemPerformance.AllTrades.Count is the number of closed trades taken by the strategy
- to access informations about the last (most recent) trades, i can use SystemPerformance.AllTrades[tradeCounter-1] because the array index starts from 0 (not 1)
- when i see 13 trades on the strategy analyzer and AllTrades.Count retirns 13, i try to access AllTrades[12] and i get an error and i do not understand why ...
Thank you for your help

Comment