Login Page - Create Account

Support Board


Date/Time: Tue, 28 Jul 2026 03:41:00 +0000



[Programming Help] - address of SCStudyInterfaceRef stability

View Count: 172

[2026-06-13 00:30:44]
User166108 - Posts: 88
Is the address of the ref passed into the study consistent throughout the study’s lifetime? The use case I have is using the pointer as a key in a global map and removing it on LastCallToFunction. If the address can change (for example due to a reallocation) then I’d rather not use this approach.

Thanks.
[2026-06-13 03:08:33]
Sierra_Chart Engineering - Posts: 24317
No, it is not constant or stable. We would expect that it changes when you open the Chart Studies window and then press either OK or Apply.

This would be the only reason we can think of. And certainly it would change when you close a Chartbook and reopen it.
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: 2026-06-13 03:09:02
[2026-06-13 06:57:11]
User166108 - Posts: 88
But in those instances, LastCallToFunction would be set right?

I.e before the reference becomes invalid, you set LastCallToFunction
[2026-06-13 13:37:50]
Sierra_Chart Engineering - Posts: 24317
No this is not true in the case of when changing studies through the Chart Studies window:

But in those instances, LastCallToFunction would be set right?

This will not become true in that case and we have confirmed that the address of s_sc does change.
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

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

Login

Login Page - Create Account