Support Board
Date/Time: Mon, 23 Dec 2024 19:48:07 +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 --; |