DayOfWeek
Previous Topic  Next Topic 

Definition

The day of the week of the current bar accessed through the Time property.


Property Value

A DayOfWeek type such as:

DayOfWeek.Monday

DayOfWeek.Tuesday

DayOfWeek.Wednesday

DayOfWeek.Thursday

DayOfWeek.Friday

DayOfWeek.Saturday

DayOfWeek.Sunday



Syntax
Time[int barsAgo].DayOfWeek


Property Of

Custom Indicator, Custom Strategy


Examples

protected override void OnBarUpdate()
{
    // If its Monday...do not trade
    if (Time[0].DayOfWeek == DayOfWeek.Monday)
        return;
}