Support Board
Date/Time: Mon, 27 Jan 2025 19:16:55 +0000
Error with persistent variables called from another study
View Count: 657
[2019-03-06 11:23:37] |
User470516 - Posts: 78 |
Dear SC Team, Let int& 'a' be a ref to a persistent variable of studyA called in studyB. Throughout the all programm, the value received by StudyB always is the value of 'a' for sc.Index = sc.ArraySize in StudyA instead of the current value at any sc.Index. This has been working for months without problem. I updated SC about 2 weeks ago. I have a problem very similar to the one posted by one of your clients here :Persist Variables who claims it was fixed without him changing his code. Would we be facing something similar? I precise that persitentvars are reset on recalculation && sc.Index == 0 as stated in the documentation. Thank you for the support. Regards, Laurent |
[2019-03-06 17:47:13] |
Sierra Chart Engineering - Posts: 104368 |
What is the relevancy of an array index to persistent variables? There is no connection between the two.
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: