Support Board
Date/Time: Sun, 06 Jul 2025 11:15:58 +0000
How do i limit my acsil study to calculate on bar close only?
View Count: 71
[2025-06-25 12:23:16] |
maxima120 - Posts: 151 |
I have this in the manual loop acsil: for (int i = sg.UpdateStartIndex; i < sg.ArraySize; ++i) { if(sc.GetBarHasClosedStatus(i) != BHCS_BAR_HAS_NOT_CLOSED) continue; but nonetheless I got prints for every tick even if bar is not closed. this study is applied to a study which is applied to renko bar chart. |
[2025-06-25 12:34:27] |
User431178 - Posts: 733 |
I think you meant to use BHCS_BAR_HAS_CLOSED not BHCS_BAR_HAS_NOT_CLOSED. or maybe == instead of != ACSIL Interface Members - Functions: sc.GetBarHasClosedStatus() Date Time Of Last Edit: 2025-06-25 12:36:32
|
[2025-06-25 13:03:47] |
maxima120 - Posts: 151 |
thanks mate :) and today is not friday even :) brain is fried
Date Time Of Last Edit: 2025-06-25 13:04:00
|
To post a message in this thread, you need to log in with your Sierra Chart account: