Support Board
Date/Time: Wed, 15 Jan 2025 22:40:15 +0000
Post From: ACSIL Interface: How to tell when current bar is closed
[2017-09-07 17:28:04] |
Dryheat31 - Posts: 13 |
Spent hours searching the documentation and the support board. Found nothing to explain if this is even possible. Other platforms provide a way to tell if the current bar being evaluated is still open or whether it has closed. Obviously, if there are any bars to the right of the bar being evaluated, the bar status is closed. However when evaluating the last bar on the chart, and markets are closed, how do you code for "Bar Status == Closed"? Only thing I can imagine is to do some math based on DateTime, to get the closing time of the current bar. But this will not work on Tick charts. And if we try to do this by comparing current DateTime to SessionEnd or SessionStart times, well then we lack a solution for Daily, Weekly and Monthly charts. Any thoughts or suggestions are highly valued. Thanks! |