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.
This request was merged into another request
No comments yet
Be the first to share your thoughts.