Support Board
Date/Time: Wed, 11 Mar 2026 06:04:14 +0000
Post From: sc.ReadIntradayFileRecordForBarIndexAndSubIndex and Volume Based Bars
| [2026-01-24 18:18:54] |
| User431178 - Posts: 852 |
|
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. |
