This Time Value category contains all Default Rules related to the Time and Dates of the Bars.
Every rule in this category is a Value Rule. This means that it returns a number value and not a condition (True or False).
Bar time
This Rule returns the Date of the Bar. The return value is a float number composed by the number of days ellapsed since 01/01/1900. This is the Excel date format and provide milliseconds accuracy.
Parameters :
Bar Position : Position of the Bar on the current chart. 0 is the last printed Bar on the chart. 1, is the previous Bar from the last Bar . 2, is the second previous Bar from the last Bar .
Timeframe : Timeframe of the Bar. It's advised to let the value "Current" to get the value of the Bar on the current chart.
Symbol : Symbol of the Bar. It's advised to let the value "Current" to get the value of the Bar on the current chart.
Bar hour
This Rule returns the hour of the Bar. It returns an integer number between 0 and 23.
Parameters :
Bar Position : Position of the Bar on the current chart. 0 is the last printed Bar on the chart. 1, is the previous Bar from the last Bar . 2, is the second previous Bar from the last Bar .
Timeframe : Timeframe of the Bar. It's advised to let the value "Current" to get the value of the Bar on the current chart.
Symbol : Symbol of the Bar. It's advised to let the value "Current" to get the value of the Bar on the current chart.
Bar minute
This Rule returns the minutes of the Bar. It returns an integer number between 0 and 59.
Parameters :
Bar Position : Position of the Bar on the current chart. 0 is the last printed Bar on the chart. 1, is the previous Bar from the last Bar . 2, is the second previous Bar from the last Bar .
Timeframe : Timeframe of the Bar. It's advised to let the value "Current" to get the value of the Bar on the current chart.
Symbol : Symbol of the Bar. It's advised to let the value "Current" to get the value of the Bar on the current chart.
Bar day of month
This Rule returns the High of the Bar. It returns an integer number between 1 and 31.
Parameters :
Bar Position : Position of the Bar on the current chart. 0 is the last printed Bar on the chart. 1, is the previous Bar from the last Bar . 2, is the second previous Bar from the last Bar .
Timeframe : Timeframe of the Bar. It's advised to let the value "Current" to get the value of the Bar on the current chart.
Symbol : Symbol of the Bar. It's advised to let the value "Current" to get the value of the Bar on the current chart.
Bar day of week
This Rule returns the High of the Bar. It returns an integer number between 0 and 6.
Details : Sunday = 0, Monday = 1, Tuesday = 2, Wednesday = 3, Thursday = 4, Friday = 5, Saturday = 6
Parameters :
Bar Position : Position of the Bar on the current chart. 0 is the last printed Bar on the chart. 1, is the previous Bar from the last Bar . 2, is the second previous Bar from the last Bar .
Timeframe : Timeframe of the Bar. It's advised to let the value "Current" to get the value of the Bar on the current chart.
Symbol : Symbol of the Bar. It's advised to let the value "Current" to get the value of the Bar on the current chart.