Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 08:31:09 +0000



TradeStatistics

View Count: 730

[2020-06-24 09:31:14]
gfx2trade - Posts: 48
Hi,
I added the s_ACSTradeStatistics to my code.
it works fine for ClosedProfitLoss() and TotalTrades()
But it does not compile for TotalShortTrades() and TotalLongTrades() ...
Also, it there a list of all available s_ACSTradeStatistics functions ?

  s_ACSTradeStatistics TradeStatistics;
      sc.GetTradeStatisticsForSymbol(0, 1, TradeStatistics);
      
      int DailyTotalPL = TradeStatistics.ClosedProfitLoss();
      int DailyTotalTrade = TradeStatistics.TotalTrades();
      int DailyShTrade = TradeStatistics.TotalShortTrades();
      int DailyLgTrade = TradeStatistics.TotalLongTrades();

[2020-06-26 05:52:59]
Sierra Chart Engineering - Posts: 104368
You really want to use this new function:
sc.GetTradeStatisticsForSymbolV2()

Which gives access to these member variables:
  int32_t LongTrades = 0;
  int32_t LongFlatToFlatTrades = 0;
  int32_t ShortTrades = 0;
  int32_t ShortFlatToFlatTrades = 0;
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: 2020-06-26 05:54:45
[2020-07-08 15:34:18]
gfx2trade - Posts: 48
Thks for the answers.
I am know using sc.GetTradeStatisticsForSymbolV2().

Two question.... is there any way to set the start date for the statistics log ? i.e. I would like to have the $ since the beginning of the month.

Also, is there any way to get the daily statistics for the trading account as a whole rather than the chart symbol.

Thks
[2020-07-09 06:45:05]
Sierra Chart Engineering - Posts: 104368
Refer to:
Chart Settings: Order Fills Start Date-Time (Chart >> Chart Settings >> Trading menu)

Also, is there any way to get the daily statistics for the trading account as a whole rather than the chart symbol.
Only within the Trade Activity Log itself.
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

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

Login

Login Page - Create Account