I'm trying to get the actual Realized PnL for today because I need to set a maximum loss per day, so I've doing research and found this line of code:
SystemPerformance.AllTrades.TradesPerformance.Curr ency.CumProfit
Which is supposed to be the one to get it but when I print that line is not even close to the number I see on my account, which should match because I'm running the strategy only for that account.
Any ideas?
Comment