Login Page - Create Account

Support Board


Date/Time: Sun, 11 May 2025 04:39:23 +0000



Post From: Incorrect ACSIL Function (SCALE_CONSTRANGE)

[2024-08-29 21:57:42]
User688525 - Posts: 284
Hello Sierra Chart,
As per the Base Graph Scale Range Types (ACSIL Interface Members - Variables and Arrays: sc.BaseGraphScaleRangeType), I have discovered that SCALE_CONSTRANGE generates an error when compiling, however, SCALE_CONSTANT_RANGE generates without errors and also functions correctly.

When trying to set the Scale Range using sc.ScaleConstRange, there is no error with compiling, but the function doesn't set the scale range.

As per your documentation, it specifies that this only works when the Scale Range Type is "SCALE_CONSTRANGE". As above, if SCALE_CONSTRANGE is generating errors, could this explain why setting the scale range is not working?

"sc.ScaleConstRange is the range, that is the difference between the high and the low, for the constant range scale types. This is only used when sc.ScaleRangeType is either SCALE_CONSTRANGE or SCALE_CONSTRANGECENTER. If sc.ScaleRangeType is set to one of these constant range types, sc.ScaleConstRange needs to be greater than 0."


Thank you