Time value: Difference between revisions

From NakedMarkets
Jump to navigation Jump to search
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== [[File:CategoryRule Time.png|left|alt=CategoryRule Time|CategoryRule Time]] Summary ===
=== [[File:CategoryRule Time.png|left|alt=CategoryRule Time|CategoryRule Time]] Summary ===
This Price Value category contains all [[Default Rules]] related to the Price Action on the Charts.
This Time Value category contains all [[Default Rules]] related to the Time and Dates of the Bars.
<br>You can access the price values of the Bars(open, high, low, close, ...) and the markets properties (spread, pips, ...). Thus, every rule in this category is a [[Core Rules#Value Core Rules|Value Rule]]. This means that it returns a number value and not a condition (True or False).
<br>Every rule in this category is a [[Core Rules#Value Core Rules|Value Rule]]. This means that it returns a number value and not a condition (True or False).
<br>
<br>
<br>
<br>


=== Bar time ===
=== 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.
<br>
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.
<br>
<br>
=== Bar hour ===
=== Bar hour ===
This Rule returns the hour of the Bar. It returns an integer number between 0 and 23.
<br>
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.
<br>
<br>
=== Bar minute ===
=== Bar minute ===
This Rule returns the minutes of the Bar. It returns an integer number between 0 and 59.
<br>
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.
<br>
<br>
=== Bar day of month ===
=== Bar day of month ===
This Rule returns the High of the Bar. It returns an integer number between 1 and 31.
<br>
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.
<br>
<br>
=== Bar day of week ===
=== Bar day of week ===
This Rule returns the High of the Bar. It returns an integer number between 0 and 6.
<br> Details : Sunday = 0, Monday = 1, Tuesday = 2, Wednesday = 3, Thursday = 4, Friday = 5, Saturday = 6
<br>
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.
<br>
<br>

Latest revision as of 15:18, 23 August 2021

CategoryRule Time
CategoryRule Time
Summary

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.