Login Page - Create Account

Support Board


Date/Time: Fri, 19 Apr 2024 17:19:37 +0000



How to share sc arrays through global variables?

View Count: 1059

[2014-03-06 13:46:26]
marcovth - Posts: 61
Hello ...

Is there an easy way to share arrays between studies located in the same cpp file?

I tried to use globally declared arrays, but you never know in advance how many bars a chart contains to declare a global array.

Thanks for some suggestions.
[2014-03-06 17:31:54]
Sierra Chart Engineering - Posts: 104368
This is possible with the arrays on sc.Subgraph objects. Refer to this page here:
https://www.sierrachart.com/index.php?l=doc/doc_ACSILProgrammingConcepts.html#UsingStudyData

There are also the sc.Subgraph[].Arrays[] which can be filled in and accessed across studies.
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:

Login

Login Page - Create Account