Support Board
Date/Time: Tue, 21 Jan 2025 04:19:42 +0000
ReadIntradayFileRecordAtIndex returns error when loading historical data on replay
View Count: 999
[2018-08-02 16:44:06] |
onnb - Posts: 662 |
See code snippet below When I load the chart (without replay) it works ok. ReadIntradayFileRecordAtIndex returns 1 and rec is fine. When I start the replay, study process historical data before replaying the "live" bar. ReadIntradayFileRecordAtIndex returns 0 and rec is 0. Once the replay starts and study is processing live bar, it works fine. So issue is just with the historical data in replay. SCSFExport scsf_test_ReadIntradayFileRecordAtIndex(SCStudyInterfaceRef sc)
{ if (sc.SetDefaults) { sc.GraphName = "ReadIntradayFileRecordAtIndex Test"; sc.StudyDescription = ""; sc.AutoLoop = 1; sc.GraphRegion = 0; sc.FreeDLL = 1; return; } s_IntradayRecord rec = { 0 }; int res = sc.ReadIntradayFileRecordAtIndex(sc.Index, rec, IFLA_LOCK_READ_RELEASE); sc.AddMessageToLog(SCString().Format("%i: (%i) Open: %s", sc.Index, res, sc.FormatGraphValue(rec.Close, sc.BaseGraphValueFormat)), 0); } |
[2018-08-02 17:14:20] |
Sierra Chart Engineering - Posts: 104368 |
The study function is not going to be called when data is being loaded in a chart. So when exactly is this occurring?
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 |
[2018-08-02 17:24:31] |
onnb - Posts: 662 |
It occurs when you start a replay To reproduce 1. open chart 2. add study - ReadIntradayFileRecordAtIndex returns 1 on all historical bars 3. scroll back in time 4. click start on replay button - ReadIntradayFileRecordAtIndex returns 0 on all historical bars Does that help? |
[2018-08-04 00:58:31] |
Sierra Chart Engineering - Posts: 104368 |
We have to do some testing.
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 |
[2018-08-06 18:03:48] |
Sierra Chart Engineering - Posts: 104368 |
Okay we see the reason for the problem and we have implemented a solution which will be out in the next release.
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: