Login Page - Create Account

Support Board

Date/Time: Tue, 09 Aug 2022 08:23:23 +0000

sc.GetTradeList crashes SC

View Count: 1377

[2013-06-10 09:36:41]
Hendrixon - Posts: 130
std::vector <s_ACSTrade> 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:

From where can I pull the value of AVG trade price line when using Flat To Flat?
[2013-06-10 20:55:42]
Sierra Chart Engineering - Posts: 104215
1. We now recognize what the problem is. It has to do with the differences in compiler implementations of the vector class. We are going to have to reimplement this function differently. It is going to require code changes.

2. This is not supported.
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:

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: 2013-06-10 20:57:24

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


Login Page - Create Account