Login Page - Create Account

Support Board


Date/Time: Fri, 21 Jan 2022 23:59:52 +0000



sc.GetTradeList crashes SC

View Count: 1203

[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?
[2013-06-10 20:55:42]
Sierra Chart Engineering - Posts: 99896
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:
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: 2013-06-10 20:57:24

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

Login

Login Page - Create Account