Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 18:44:16 +0000



Post From: Problem with sc.ReadIntradayFileRecordForBarIndexAndSubIndex() function

[2023-04-16 17:10:09]
User462211 - Posts: 18
Hello,
I have problem with sc.ReadIntradayFileRecordForBarIndexAndSubIndex() function.
To illustrate the problem, I use the scsf_ReadChartBarRecordsFromUnderlyingIntradayFileExample study, and I made three screenshots.

https://www.sierrachart.com/image.php?Image=168166446992.png
The first screenshot is for the last few minutes until this Friday's market close on the ES. (the market closes at 23:00:00 at my place)
In this case, the function works well, the volume is correct.

https://www.sierrachart.com/image.php?Image=1681664577848.png
https://www.sierrachart.com/image.php?Image=1681664694608.png
However, as the following two screenshots show, if the Session End Time is restricted before the market closes, the volume displayed is totally false.
In fact, the function fails to stop at the provided BarIndex, and continues until the end of the file scid. Which is not the desired behavior, because i cannot parse the past data correctly with it. And most importantly, the value given for the last BarIndex is totally wrong.

Sorry for my english and thank you in advance for your answers
Date Time Of Last Edit: 2023-04-16 17:18:01