Reports number of days elapsed since year 1900 at selected N bar of the current chart.
Syntax:
1 |
Days[N] |
Reports number of days elapsed since year 1900 at selected N bar of the current chart.
Syntax:
1 |
Days[N] |
Represents the hour of each N bar loaded in the chart.
Syntax:
1 |
Hour[N] |
Example:
1 2 3 4 5 6 7 |
IF (Hour[1] = 9) THEN lasthourwasnine = 1 ELSE lasthourwasnine = 0 ENDIF RETURN lasthourwasnine |
Represents the minute of each bar loaded in the chart.
Syntax:
1 |
Minute |
Example:
Retrieve the timeframe of the current chart
1 2 3 4 5 6 |
tf = (minute-minute[1]) if tf<0 then tf=60-abs(tf) endif return tf |
Are we on last half-hour?
1 2 3 4 5 6 7 |
if(Minute>30) THEN HalfHour = 1 ELSE HalfHour = 0 ENDIF RETURN HalfHour |
Represents the month of each bar loaded in the chart.
Syntax:
1 |
Month[N] |
Example:
1 2 3 4 5 6 7 8 9 |
lastmonth = Month[1] if(lastmonth = 12) THEN itwerechristmasmonth = 1 ELSE itwerechristmasmonth = 0 ENDIF RETURN itwerechristmasmonth |
Date of the open of the current bar in the format YYYYMMDD.
Syntax:
1 |
OpenDate |
Day of the open of the current bar.
Syntax:
1 |
OpenDay |
Day of week of the open of the current bar.
Syntax:
1 |
OpenDayOfWeek |
Opening hour of the current bar in the user’s time zone.
Syntax:
1 |
OpenHour |
Opening minute of the current bar in the user’s time zone.
Syntax:
1 |
OpenMinute |
Opening month of the current bar.
Syntax:
1 |
OpenMonth |