Methods OpenPnL and ClosedPnL

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.

Upvoters
Status

In review

Board

💡 Feature Request

Date

3 months ago

Author

Jorge

Subscribe to post

Get notified by email when there are changes.