Support Board
Date/Time: Sun, 12 Jan 2025 19:03:50 +0000
function to retrieve the value of an index from the current index ?
View Count: 782
[2017-03-02 14:25:53] |
User210074 - Posts: 63 |
Is there a function to retrieve the value of an index from the current index? Example: I have a FESX graph. I want to retrieve the value of the ES in code. Just an exemple to explain what i said at the top /*in Dax Code ( x.cpp)*/ /* .... */ int A{1}; int B{0}; int C{sc.PersistVars->Integers[B]}; C=A; /*....*/ /*in SP500 Code ( Y.cpp)*/ /* .... */ int Dax(int A){ /* the function to retrieve the value of the Dax (C in Dax) -> return C;/*return the value of the Dax*/ */ } main(){ /*... int date{sc.BaseDateTimeIn[sc.Index].GetHour();}; int Dax(Date);/*Dax value*/ } /*....*/ |
[2017-03-02 18:50:19] |
Sierra Chart Engineering - Posts: 104368 |
To access data for another symbol using ACSIL, refer to: http://www.sierrachart.com/index.php?page=doc/ACSILRefOtherTimeFrames.php Also, the code you wrote is not valid C++. 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-03-07 18:38:30] |
User210074 - Posts: 63 |
sc.PersistVars->Integers[0] Ex: string Year = "2017"; sc.PersistVars->String[0]= Year; |
[2017-03-07 18:50:34] |
Sierra Chart Engineering - Posts: 104368 |
Yes. But you need to use this function: sc.GetPersistentSCString() Reference: http://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Functions.html#scGetPersistentInt 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-03-08 22:35:11] |
User210074 - Posts: 63 |
sc.PersistVars->Integers[0] long long int A =201704031555001;/*15 number*/ long long int& Nombre = sc.PersisWars[0]; Nombre = A; |
[2017-03-08 23:24:16] |
Sierra Chart Engineering - Posts: 104368 |
Yes. Use sc.GetPersistentInt64() sc.PersistVars is considered out of date. You should not be using that anymore. Use these functions: http://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Functions.html#scGetPersistentInt 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: