Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 08:55:38 +0000



[Programming Help] - Is it possible to set value in sc.SetDefaults from input ?

View Count: 278

[2023-12-16 13:37:26]
BenjFlame - Posts: 324
Hi,
is it possible to conditionally set value in sc.SetDefaults, from and SCInputRef ?

So for example if I want to set sc.GraphRegion value conditionally from SCInputRef, is it possible ?
[2023-12-16 18:08:55]
User719512 - Posts: 264
Yes, see also ACSIL Interface Members - Variables and Arrays: sc.GraphRegion
[2023-12-16 23:25:55]
Sierra_Chart Engineering - Posts: 17179
We do not believe this is going to work right. In any case, it would not be considered a reliable method.

Since the Inputs at that point in time are being configured to their default.

So what you need to do is move the setting of sc.GraphRegion below the set defaults code block. And only set it on a full recalculation:
sc.IsFullRecalculation
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: 2023-12-16 23:26:39

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

Login

Login Page - Create Account