Support Board
Date/Time: Sun, 05 Jul 2026 12:35:20 +0000
Post From: ACSIL: finding first bar for the trading day
| [2015-04-30 15:00:39] |
| jackw - Posts: 57 |
|
This will also work, and it relies on the date instead of the time to find the first bar of the day. int FirstBarOfDay = sc.ArraySize - 1;
while (DATE_PART(sc.BaseDateTimeIn[FirstBarOfDay]) == DATE_PART(sc.BaseDateTimeIn[FirstBarOfDay - 1])) FirstBarOfDay --; |
