Support Board
Date/Time: Sat, 24 Jan 2026 23:42:44 +0000
Post From: sc.ReadIntradayFileRecordForBarIndexAndSubIndex and Volume Based Bars
| [2026-01-24 18:18:54] |
| User431178 - Posts: 837 |
|
The only possible alternative I see is to use the functions sc.FileRecordIndexOfLastDataRecordInChart and sc.ReadIntradayFileRecordAtIndex per the scsf_ReadFromUnderlyingIntradayFileExample in Studies2.cpp. In this case, it seems I start with the last data record on the chart and loop back through each record to find the stuff I’m looking for. Can anyone think of a more efficient way? Don't loop back through the records, use a binary search, it'll be orders of magnitude faster. |
