Login Page - Create Account

Support Board


Date/Time: Fri, 28 Feb 2025 04:30:38 +0000



Post From: Issue with sc.GetTradeStatisticsForSymbolV2 on chart with

[2021-08-02 15:10:20]
Pawel_Szpak - Posts: 48
Attach a study to a chart that (in this instance) is set to NQU21_FUT_CME, but has the "Trade and Quote Symbol" field set to MNQU21_FUT_CME and "Use as Trade Symbol Only" ticked.

Running the below :
n_ACSIL::s_TradeStatistics TradeStatistics;
  if (sc.GetTradeStatisticsForSymbolV2(n_ACSIL::STATS_TYPE_DAILY_ALL_TRADES, TradeStatistics))
  {

    ClosedTProfitLoss = TradeStatistics.ClosedTradesProfitLoss;
  }

When the chart is live Trading, ClosedTProfitLoss returns the correct actual LIVE pnl as is realised trading the MNQU21_FUT_CME contract.
However, when I run a chart replay on this chart with "Trade Simulation" on, ClosedTProfitLoss will be the profit that is generated on the NQU21_FUT_CME symbol instead. Sim trading does not seem to calculate off of the MNQU21_FUT_CME contract.