Login Page - Create Account

Support Board


Date/Time: Thu, 13 Aug 2026 21:59:33 +0000



Sierra studies missing a return in sc.SetDefaults block

View Count: 19

[2026-08-13 18:50:35]
User719512 - Posts: 454
Hi Sierra Chart Engineering,

A return and end of the sc.SetDefaults block is mandatory per this page:
ACSIL Interface Members - Variables and Arrays: sc.SetDefaults

The sample source should represent well-written and compliant code, so I am bringing this to your attention.


missing-return+fallthrough L 5520 scsf_ValueChartLevels D:\SierraChart\ACS_Source\Studies3.cpp
missing-return+fallthrough L 4801 scsf_GannTrendOscillator D:\SierraChart\ACS_Source\Studies4.cpp
missing-return+fallthrough L 5229 scsf_OneTimeFraming D:\SierraChart\ACS_Source\Studies4.cpp
missing-return+fallthrough L 5615 scsf_NumericInformationReference D:\SierraChart\ACS_Source\Studies4.cpp
missing-return+fallthrough L 9832 scsf_CalculateTimeSpanAcrossChartBarsExample D:\SierraChart\ACS_Source\Studies8.cpp

[2026-08-13 20:11:36]
Sierra_Chart Engineering - Posts: 24544
We will take care of this now. This clearly is wrong.

Three of those studies look like studies from users. The last two are examples and we will fix those.

Thank you for pointing this out. That is appreciated.

In many cases there is not a harm with this, but there is extra processing that occurs that is unnecessary. And it is a problem because when browsing through the list of studies there is extra time to get the list of studies. Although this time, is not noticeable because it is really in the microsecond range in many cases.

The 2 Sierra Chart provided studies, do not present any significant amount of additional processing. But we have now fixed this.
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-08-13 20:17:25

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

Login

Login Page - Create Account