I am currently trying to get the unrealized profit for my active strategies in an add on, and the number that I get isn't consistent with the Strategies Tab in the Control Center window. This is the code that I am using to get the unrealized profit.
What do you recommend I use so the number is consistent with the Control Center?
This is what I am doing.
double CurrentUnrealizedPNL = 0;
foreach (StrategyBase strategy in accountSelector.SelectedAccount.Strategies)
What should I be doing for the number to be accurate?
Comment