Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 07:27:19 +0000



Post From: TradeStatistics

[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();