Next code works fine on Real or Sim account:
var trades = TradingManager.MyTrades; if (trades != null) {
foreach (var tra in trades)
{
vgOpenPNL = Math.Round((double)tra.Portfolio.OpenPnL, 2);
Also next code:
this.TradingManager.Portfolio.ClosedPnL
But for Replay, both methods do not get nothing. Will be great if this method works with Replay also. Thanks.
Please authenticate to join the conversation.
In review
💡 Feature Request
3 months ago

Jorge
Get notified by email when there are changes.
In review
💡 Feature Request
3 months ago

Jorge
Get notified by email when there are changes.