Login Page - Create Account

Support Board


Date/Time: Sat, 20 Apr 2024 00:40:11 +0000



Post From: sc.GetTradeList crashes SC

[2013-06-10 09:36:41]
Hendrixon - Posts: 130
1.
std::vector <s_ACSTrade> TradesList;
sc.GetTradeList(TradesList);
for (int TradeIndex = 0; TradeIndex < TradesList.size(); TradeIndex++)
{
double ProfitLoss = TradesList[TradeIndex].ClosedProfitLoss;
}

Your above code example crashes SC, prior and latest 984 build.

By elimination it seems that the code line that does that is:
sc.GetTradeList(TradesList);

2.
From where can I pull the value of AVG trade price line when using Flat To Flat?