Support Board
Date/Time: Tue, 11 Feb 2025 18:18:44 +0000
v2160 SetFloatLimits error with zero value on SCInput array
View Count: 466
[2020-09-18 09:59:11] |
binaryduke - Posts: 378 |
When compiling against the v2160 header, using the .SetFloatLimits function of the SCInput array results in a zero value appearing as 1.1754944e-38 within the inputs. Code: #include "sierrachart.h" SCDLLName("SCFloatInput") /*==========================================================================*/ SCSFExport scsf_FloatInput(SCStudyInterfaceRef sc) { SCInputRef Input_FloatInput = sc.Input[0]; if (sc.SetDefaults) { sc.GraphName = "Float Input"; Input_FloatInput.SetFloatLimits(FLT_MIN, FLT_MAX); Input_FloatInput.SetFloat(0); Input_FloatInput.Name = "Float Input"; sc.GraphRegion = 0; sc.AutoLoop = 1; return; } } Screenshot of input appearance attached. |
![]() Attachment Deleted. |
[2020-09-18 10:08:56] |
|
Yes that does make sense based upon your code. Zero is below the minimum.
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 |
[2020-09-18 10:10:29] |
binaryduke - Posts: 378 |
of course; -FLT_MAX is what I need. Apologies.
|
To post a message in this thread, you need to log in with your Sierra Chart account: