I've problem with the function GetUnrealizedProfitLoss().
If i call this function from a Sim account when i close a trade(IsLastExit boolean), i get the good value and everything is good.
But if i use a real account, the returned value is 0.
I don't know how to get the good value from a real account and the documentation "https://ninjatrader.com/fr/support/helpGuides/nt8/?account_class.htm" does not work.
Can you help me ?
Regards
Comment