Login Page - Create Account

Support Board


Date/Time: Fri, 10 May 2024 04:03:16 +0000



Post From: Does sc.GetTradeStatisticsForSymbol use sc.TradeAndCurrentQuoteSymbol or the chart symbol?

[2019-06-11 23:16:58]
User796776 - Posts: 95
My chart is using ESM19_FUT_CME with MESM19_FUT_CME as the trade and current quote symbol.

When calling sc.GetTradeStatisticsForSymbol, the profit and loss numbers seem to be using the CurrencyValuePerTick for the chart symbol vs sc.TradeAndCurrentQuoteSymbol.

Is it my responsibility to perform the conversion?

Executing sc.GetTradeStatisticsForSymbol produces the following s_ACSTradeStatistics

    ClosedProfit  517.41998884826899  double
    ClosedLoss  -3.7899997085332870  double
    TotalCommission  11.369999125599861  double
    MaximumRunup  517.41998884826899  double
    MaximumDrawdown  -3.7899997085332870  double
    MaximumTradeRunup  962.50922428444028  double
    MaximumTradeDrawdown  -275149.99077571556  double
    MaximumOpenPositionProfit  425.00307476148009  double
    MaximumOpenPositionLoss  -137562.49692523852  double
    TotalWinningTrades  2  int
    TotalLosingTrades  1  int
    TotalLongTrades  3  int
    TotalShortTrades  0  int
    TotalWinningQuantity  2.0000000000000000  double
    TotalLosingQuantity  1.0000000000000000  double
    TotalFilledQuantity  6.0000000000000000  double
    LargestTradeQuantity  1.0000000000000000  double
    LargestWinningTrade  271.20999414473772  double
    LargestLosingTrade  -3.7899997085332870  double
    TimeInWinningTrades  328  int
    TimeInLosingTrades  1059  int
    MaxConsecutiveWinners  2  int
    MaxConsecutiveLosers  0  int
    Version  3  int
    LastTradeProfitLoss  -3.7899997085332870  double
    LastTradeQuantity  1.0000000000000000  double
+    LastFillDateTime  {m_dt=43619.407812800979 }  SCDateTime
+    LastEntryDateTime  {m_dt=43619.395556053321 }  SCDateTime
+    LastExitDateTime  {m_dt=43619.407812800979 }  SCDateTime
    TotalBuyQuantity  6.0000000000000000  double
    TotalSellQuantity  0.00000000000000000  double

The attached screenshot shows the Statistics Tab from the Trade Activity Log.
imageScreen Shot 2019-06-11.png / V - Attached On 2019-06-11 23:13:21 UTC - Size: 45.45 KB - 237 views