Login Page - Create Account

Support Board


Date/Time: Sun, 17 May 2026 08:57:03 +0000



Post From: ASCIL - excluding Saturday, Sunday and/or weekend data

[2022-03-01 15:57:37]
User92573 - Posts: 587
It just a study to show the High/Low for the current selected timeframe using a start-time, end-time and an option to exclude weekend data.
I've used the "HighLowForTimePeriod" study as a template so should be very straightforward but for some reason I'm struggling with the Weekend section even though my Autoloop test using "if(sc.BaseDateTimeIn[sc.Index].GetDayOfWeek() == SATURDAY ||
sc.BaseDateTimeIn[sc.Index].GetDayOfWeek() == SUNDAY)" works fine.