Login Page - Create Account

Support Board


Date/Time: Mon, 21 Apr 2025 23:36:10 +0000



Static Vs. Persistent Variables

View Count: 151

[2025-02-17 03:07:35]
User509533 - Posts: 73
Under a chartbook, if multiple charts are running the same study (xyz.dll) with a persistent variable P, any of those charts can modify P. To ensure each chart has its own separate copy of P, would using a static variable be the right approach?
[2025-02-17 07:34:13]
Sierra_Chart Engineering - Posts: 19290
A static variable would mean that every instance of the study is using the same variable.

Use ACSIL persistent variables for each instance of the study to have its own variables:
ACSIL Interface Members - Functions: Persistent Variable Functions
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, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2025-02-17 08:41:21

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

Login

Login Page - Create Account