Login Page - Create Account

Support Board


Date/Time: Wed, 15 Jan 2025 17:40:10 +0000



Vector 2 Levels works, but Instable

View Count: 819

[2017-08-28 10:30:25]
User210074 - Posts: 63
I have a problem with 2-dimensional vector.
When I test the code on CODE::BLOCK.
I have no mistakes.
When I use it on Sierra chart.
it work.
But I have an error message in the Message Log "Warning: This Custom DLL study may cause Sierra Chart to be unstable until you remove the study from your chart and restart Sierra Chart. | 2017-08-28 11:48:31 *
"
I restart, i have the same message.

Question :
Do 2-dimensional vector work on SierraChart?
If yes, i don't know what 's happen !

/* ..... */
vector<vector<string>>Mli{};
int k{0},m{0};
for(int i=0;i<10;++i){
Mli.push_back(vector <string>());
for(int j=0;j<1;++j){
if(j == 0){
k+=1;
string l=to_string(k);
Mli[i].push_back(l);
}
}
}
m = Mli.size();
if(m>=1){
for(int i=0;i<m;++i){
string o = Mli[i][0];
sc.AddMessageToLog(o.c_str(), 1);
}
}

Date Time Of Last Edit: 2017-08-28 10:32:10
[2017-08-28 14:07:36]
Sierra Chart Engineering - Posts: 104368

Do 2-dimensional vector work on SierraChart?
Yes of course because you are working with the C++ language..

This is not Sierra Chart dependent.
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

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

Login

Login Page - Create Account