I have an Addon monitoring a specific account. I register to account events on both AccountItem and PositionUpdates to listen for account value changes.
I am interested in getting the real time unrealized value, but AccountItem.UnrealizedProfitLoss and position.GetUnrealizedProfitLoss() donīt seem to provide real time changes of the account, or at least not for UnrealizedProfitLoss values.
How can I get the UnrealizedProfitLoss value in Real Time using an addon (not in a strategy)?
If you can provide an example on how to do this would be really nice.
Thanks!
Comment