Price value

From NakedMarkets
Jump to navigation Jump to search

CategoryRule_PriceValue
Summary

This Price Value category contains all Default Rules related to the Price Action on the Charts.
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 Value Rule. This means that it returns a number value and not a condition (True or False).

High

This Rule returns the High of the Bar.
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.


Low

This Rule returns the Low of the Bar.
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.


Open

This Rule returns the Open of the Bar.
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.


Close

This Rule returns the Close of the Bar.
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.


Volume

This Rule returns the Volume of the Bar.
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.


Percent Top

This Rule returns the Top Percent of the Bar. The Top Percent value is defined by taking the Top of the Bar (the High value) and calculate the value from the parameter Percent, explained below.
It can be useful when you want to check if the close of the current Bar is close to the high for example.
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.
  • Percent : The percentage value from where the value is calculated, starting from the Top of the Bar.


Percent Bottom

This Rule returns the Bottom Percent of the Bar. The Bottom Percent value is defined by taking the Bottom of the Bar (the Low value) and calculate the value from the parameter Percent, explained below.
It can be useful when you want to check if the close of the current Bar is close to the low for example.
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.
  • Percent : The percentage value from where the value is calculated, starting from the Bottom of the Bar.


Lowest

This Rule returns the Lowest value of the "Count" previous Bars. It can return the Lowest value of the Open, High, Low, Close, Volume, or Date of the defined Bar.
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.
  • Type : The type of value returned by this rule. It can be one of the following value : Open, High, Low, Close, Volume, or Date of the Bar.
  • Count : The number of previous Bars you want to seek for the Lowest value.


Highest

This Rule returns the Highest value of the "Count" previous Bars. It can return the Highest value of the Open, High, Low, Close, Volume, or Date of the defined Bar.
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.
  • Type : The type of value returned by this rule. It can be one of the following value : Open, High, Low, Close, Volume, or Date of the Bar.
  • Count : The number of previous Bars you want to seek for the Highest value.


Size of bar

This Rule returns the Size of the candle. In this Rules, the size is the High minus the Low of the Bar
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.


Size of body bar

This Rule returns the Size of the body Bar. In this Rule, the size calculation does not use the High or the Low of the Bar but the Open and Close. It calculates the body size of the Bar (absolute value of Open minus Low of the Bar).
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.


Last swing high

This Rule returns the Last swing high value of the "Count" previous Bars. It takes in argument the number of "Void" Bars. The "Void" Bars are the inexistent Bars on the left of the chart. This allows the identification of clear Last swing value.
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.
  • Count : The number of previous Bar you want to seek for the Last swing high value.
  • Void bars : The number of void Bars. This number is used by the last swing high value of the "Count" previous Bars. For example, a value of 10 will return the last swing high values where the 10 last candles (from the last swing high spot) did not reach a new high.


Last swing low

This Rule returns the Last swing low value of the "Count" previous Bars. It takes in argument the number of "Void" Bars. The "Void" Bars are the inexistent Bars on the left of the chart. This allows the identification of clear Last swing low value.
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.
  • Count : The number of previous Bar you want to seek for the Last swing high value.
  • Void bars : The number of void Bars. This number is used by the last swing low value of the "Count" previous Bars. For example, a value of 10 will return the last swing low values where the 10 last candles (from the last swing low spot) did not reach a new low.


Pips

This Rule returns the User supplied value, in Pips format. It allows the comparison of Bars value with a static Pips number, for example.
Parameters :

  • Symbol : Symbol of the Bar. It's advised to let the value "Current" to get the value of the Candle on the current chart.


Spread

This Rule returns the Spread value at the current time of the Backtest.
Parameters :

  • Symbol : Symbol of the Bar. It's advised to let the value "Current" to get the value of the Candle on the current chart.


Input

This Rule returns the User supplied value. It allows the user to insert any number value in the rules.