Login Page - Create Account

Support Board


Date/Time: Wed, 08 May 2024 04:34:55 +0000



Post From: Please, a clarification on the sc.SetDefaults area

[2019-06-14 11:14:59]
Sierra Chart Engineering - Posts: 104368

Is the sc.SetDefaults area similar to the OnInit area?
Yes you should be able to use it for the same purpose but you can implement your own section in the code for this. Just simply use a persistent variable:
sc.GetPersistentInt()

When it is initially false, do your initialization and then set it to true and then no longer do the initialization.
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