X

X <= Time <= Y (DayTrader only)

Abbreviation: X<=Time<=Y
Category: Time Flags
Input Parameters:

Name Range Default
Date Variable Date
X any valid time 12:00:00 PM
Y any valid time 12:00:00 PM

 
Calculation:

If (Current Bar’s Time greater than or equal to X ) AND (Current Bar’s Time less than or equal to Y) then True (1) otherwise False (0)

Warning: This indicator may not trigger exactly when expected for all frequencies. For example if X = 12:00:00 PM (noon) on a 20 minute chart, the indicator will not turn true until 12:10 PM because the time increments go 7:30, 7:50, 8:10,’, 11:30, 11:50, 12:10,’ Thus there is no bar that will be greater than or equal to 12:00:00 PM until 12:10:00 PM.

 
Discussion:

Use this indicator to determine when a bar time is within a certain time range. This indicator is especially useful in Trading Strategies where you may want to enter or exit at certain times of the day.
 

Was this article helpful?

Related Articles