Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 16:53:25 +0000



Problem with sc.ReadIntradayFileRecordForBarIndexAndSubIndex() function

View Count: 345

[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
[2023-04-16 18:33:20]
Sierra_Chart Engineering - Posts: 17204
That function is not in any way controlled by the Session Times for the chart. If you want to stop reading data outside of the Session Times, that needs to be implemented by you.

We will update the documentation.
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, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2023-04-16 18:33:31
[2023-04-16 18:49:03]
User462211 - Posts: 18
OK thank you for your answer.
I will work around the problem.
good continuation.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account