Support Board
Date/Time: Thu, 27 Feb 2025 22:30:35 +0000
Issue with sc.GetTradeStatisticsForSymbolV2 on chart with
View Count: 446
[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. |
To post a message in this thread, you need to log in with your Sierra Chart account: