Support Board
Date/Time: Fri, 31 Jan 2025 09:04:40 +0000
[Programming Help] - How to get the start of period for date time when using a non time based chart?
View Count: 583
[2019-04-23 18:12:31] |
User119530 - Posts: 15 |
I am using a 1 trade chart and want to reset some values on the hour but when using SCDateTime PriorStartOfHour = sc.GetStartOfPeriodForDateTime(sc.BaseDateTimeIn[Index - 1], TIME_PERIOD_LENGTH_UNIT_MINUTES, 60, 0, 0); SCDateTime StartOfHour = sc.GetStartOfPeriodForDateTime(sc.BaseDateTimeIn[Index], TIME_PERIOD_LENGTH_UNIT_MINUTES, 60, 0, 0); if (StartOfHour != PriorStartOfHour) {...} it never resets |
To post a message in this thread, you need to log in with your Sierra Chart account: