Support Board
Date/Time: Fri, 31 Jan 2025 20:01:09 +0000
ACSIL Global Variables are seen between chart books
View Count: 984
[2019-05-29 16:17:28] |
ForgivingComputers.com - Posts: 992 |
In the documentation (ACSIL Programming Concepts: Global Variables), it says: "There are generally 2 reasons why global variables would be used. 1. To share data between multiple study functions. 2. To maintain data between calls to your study function."
I wish to do both of the above, but keep the variables from being shared across chartbooks. Persistent variables only maintain data between calls to the study function. Apparently, global variables truly are global within the application. Is there any way to share variables between multiple study functions and limit them to the chartbook they are a part of? |
[2019-05-30 15:44:29] |
Sierra Chart Engineering - Posts: 104368 |
Yes you can use persistent variables and then access them between the different charts within a Chartbook. Refer to: sc.GetPersistentIntFromChartStudy() 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: