Support Board
Date/Time: Fri, 09 Jan 2026 18:45:35 +0000
Feature Request: GetChartStudyInputLimits()
View Count: 35
| [2026-01-06 07:58:38] |
| User719512 - Posts: 387 |
|
A study can set chart inputs but does not know the limits and therefore can increment/decrement the input beyond its limits. Using the UI, inputs are constrained to the limits. Via the API, this check is not enforced. This new API will allow studies to honor the input's limits. If Sierra constrained them during a call to SetChartStudyInputInt, which might be a good fix, the study would have to make a redundant call to see if the value was changed or not. Alternatively, SetChartStudyInputInt (float and double) could take a reference to an out param for the new value, similar to InterlockedIncrement (winnt.h). Thanks for your consideration. /* Returns the limits (optionally) set by SetIntLimits, SetFloatLimits, SetDoubleLimits. See also: GetChartStudyInputType(int ChartNumber, int StudyID, int InputIndex); GetChartStudyInputInt(int ChartNumber, int StudyID, int InputIndex, double& r_FloatValue); SetChartStudyInputInt(int ChartNumber, int StudyID, int InputIndex, int IntegerValue); GetChartStudyInputFloat(int ChartNumber, int StudyID, int InputIndex, double& r_FloatValue); SetChartStudyInputFloat(int ChartNumber, int StudyID, int InputIndex, double FloatValue); */ void GetChartStudyInputLimits(int ChartNumber, int StudyID, int InputIndex, int& r_Min, int& r_Max); void GetChartStudyInputLimits(int ChartNumber, int StudyID, int InputIndex, float& r_Min, float& r_Max); void GetChartStudyInputLimits(int ChartNumber, int StudyID, int InputIndex, double& r_Min, double& r_Max); |
To post a message in this thread, you need to log in with your Sierra Chart account:
