Login Page - Create Account

Support Board


Date/Time: Mon, 23 Jun 2025 09:45:57 +0000



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

[2022-03-01 11:49:08]
1+1=10 - Posts: 270
Yes, use SCDateTime::GetDayOfWeek

Working with the SCDateTime Variables and Values: GetDayOfWeek()

You probably need something like what is below:


if(sc.BaseDateTimeIn[sc.Index].GetDayOfWeek() == SATURDAY ||
sc.BaseDateTimeIn[sc.Index].GetDayOfWeek() == SUNDAY )
{
return; // Don’t process any weekend bars
}

Date Time Of Last Edit: 2022-03-01 11:49:50