Support Board
Date/Time: Wed, 05 Feb 2025 11:53:00 +0000
Closed bar not written in Write Bar Data To File study
View Count: 515
[2020-03-12 02:16:46] |
User186149 - Posts: 3 |
When using the Write Bar Data To File study under an Intraday Chart and a 1-0-0 bar period type with custom session start time and end time (e.g. 08:10:00 to 14:29:59). The 'closed' bar (which occurs at 14:30) does not show up in the data file until the next bar begins (which is not until the next day). I see in the source code that there is a sc.GetBarHasClosedStatus(Index) test. It 'appears' that, at least in my instance, even though the bar is 'closed', the study does not recognize it until the next bar opens (and consequently the bar isn't written it out to the file). The charted market data is one which trades all day and night (except from 4PM to 5PM) and is a continuous futures contract using date rollover back adjusted (but the market is current in between rollover dates). I have used this study much in the past and never ran into this issue. Also, FYI I have played around with different settings/configuration/versions but with no change in behaviour. Please enlighten and/or advise.
|
[2020-03-13 08:06:07] |
Sierra Chart Engineering - Posts: 104368 |
Yes this is certainly documented. The study has always worked this way. The last bar is just not written. It never has. That is definitive. We will never be convinced otherwise.
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 |
To post a message in this thread, you need to log in with your Sierra Chart account: