Login Page - Create Account

Support Board


Date/Time: Wed, 19 Mar 2025 01:22:44 +0000



[Programming Help] - ACSIL Floating Point Imprecision

View Count: 631

[2022-10-06 16:15:38]
User190501 - Posts: 98
Hi Support,

How to handle the case of floating point imprecision in ACSIL?
For example: If there is a bar that has CLOSE and LOW overlapping like what is circled in the image , or a bar that has CLOSE and HIGH overlapping -- At such examples, the code used to break of the line as shown is not executed at the event of the break..

For example if the condition is to Break the line using the CLOSE comparison then it will not be executed or recognized.
In spreadsheets, this is handled using rounding to the tick size, etc.
What is your suggestion or recommendation to handle that situation in ACSIL coding ?

if ( sc.Close[sc.Index - 1] > DC_High[sc.Index - 2] && sc.Close[sc.Index - 2] <= DC_High[sc.Index - 3] )
image2022-10-06 12_11_01-Questions and discussion for Sierra Char.png / V - Attached On 2022-10-06 16:14:21 UTC - Size: 52.15 KB - 124 views
[2022-10-06 19:37:14]
User431178 - Posts: 617
ACSIL Programming Concepts: Floating Point Value Error

ACSIL Interface Members - Functions: sc.FormattedEvaluate()

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

Login

Login Page - Create Account