Login Page - Create Account

Support Board


Date/Time: Mon, 13 Jan 2025 06:20:04 +0000



fonction ascil to recover the numbre of the chart

View Count: 851

[2017-04-10 11:36:03]
User210074 - Posts: 63
Hello,
Do you have a ASCIL function to retrieve the chart number?
I have this to recover the symbol of the chart.

SCString Futures;
Futures.Format("%s", sc.Symbol.GetSubString(4,0).GetChars());

[2017-04-10 14:13:25]
User210074 - Posts: 63
I find the fonction "sc.ChartNumber"
[2017-04-10 16:52:56]
Sierra Chart Engineering - Posts: 104368
Yes that is it.
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
[2017-04-10 19:18:02]
User210074 - Posts: 63
I test this but I have an error message that I do not understand.
I test to write the number in a text file to see if everything is good.

SCString Futures;
Futures.Format("%s", sc.Symbol.GetSubString(4,0).GetChars());
string IndiceSierra = Futures;
int NumberOfChart;
   NumberOfChart.Format("%s", sc.ChartNumber.GetInt().GetChars());/*L38 here*/
   string LinkA{"C:\\SierraChart\\Data\\Temporaire\\"+IndiceSierra+".txt"};
   ofstream FileA(LinkA.c_str(),ios_base::app);
   FileA<<NumberOfChart+" | ";/*<- just to see*/
   FileA.close();
Error message

C:\SierraChart\ACS_Source\Test.cpp(38): error C2228: left of '.Format' must have class/struct/union
I do not understand what I have to do before the "Format" function.
Date Time Of Last Edit: 2017-04-10 19:31:38

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

Login

Login Page - Create Account