Support Board
Date/Time: Mon, 21 Apr 2025 13:08:32 +0000
[Programming Help] - ACSIL - persistent variables
View Count: 176
[2025-02-24 15:58:31] |
stinky - Posts: 7 |
Why do we have to use sc.GetPersistentInt functions instead of defining an int in a global scope? This is a rather basic question, but I am trying to understand how it works behind the hood - are global variables safe, or I shouldn't create any objects at all outside of the SCFExport function scope? |
[2025-02-25 05:51:23] |
seandunaway - Posts: 348 |
a global static variable would persist across every instance of the study. a persistent variable is unique to each instance. for example, you may want different settings for different charts. there's a time and place for each ACSIL Programming Concepts: Global Variables Date Time Of Last Edit: 2025-02-25 06:41:55
|
To post a message in this thread, you need to log in with your Sierra Chart account: