Login Page - Create Account

Support Board


Date/Time: Sat, 27 Apr 2024 14:11:04 +0000



Does sc.GetTradeStatisticsForSymbol use sc.TradeAndCurrentQuoteSymbol or the chart symbol?

View Count: 762

[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 - 234 views
[2019-06-11 23:49:49]
Sierra Chart Engineering - Posts: 104368

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?
Yes. Or change the Currency Value per Tick in the chart.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2019-06-11 23:50:06
[2019-06-12 00:01:33]
User796776 - Posts: 95
OK, I will do the conversion.

But this really doesn’t make sense, there are no trade statistics for the chart symbol, only stats for the trade symbol should exist.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account