Could you please help me?
Could you please help me understand the Performance collection?
When is a trade added to it? And how does it relate to the Positions collection? Is a trade added to the Performance collection once it is closed?
E.g. does
[COLOR=blue][FONT="]foreach[/FONT][/COLOR][COLOR=black][FONT="] (Trade t [/FONT][/COLOR][COLOR=blue][FONT="]in[/FONT][/COLOR][COLOR=black][FONT="] Performance.AllTrades) {[/FONT][/COLOR][INDENT][COLOR=blue][FONT="]if[/FONT][/COLOR][COLOR=black][FONT="] (t.Entry.Time.Date == Time[[/FONT][/COLOR][COLOR=purple][FONT="]0[/FONT][/COLOR][COLOR=black][FONT="]].Date) {[/FONT][/COLOR]
[/INDENT][INDENT][INDENT][COLOR=black][FONT="] day_pnl += t.ProfitCurrency;[/FONT][/COLOR]
[/INDENT][/INDENT][INDENT][COLOR=black][FONT="] }[/FONT][/COLOR]
[/INDENT][COLOR=black][FONT="] }[/FONT][/COLOR]
Thanks and regards,
drolles

Comment