Support Board
Date/Time: Wed, 19 Mar 2025 05:05:10 +0000
Post From: ACSIL Floating Point Imprecision
[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] ) |
![]() |