Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2013.07.29 20:54

Change To Range Ratio - indicator for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

votes: 21

The idea is that the sharper trend movement is, the greater is the momentum, and the closer is the value of the momentum to the sum of the ranges of bars. So the indicator is the ratio of the momentum to the sum of ranges:

Change To Range Ratio = (close[bar] - close[bar-period]) / Sum(high - low)

This indicator is very similar to Range Ratio, but it uses a difference between the closing prices, which provides the following benefits:

  • more accurate signals;
  • turns the indicator into an oscillator with oversold and overbought areas.

The indicator is designed for short-term trading on high timeframes (H4 and higher), and works well with 3-5 bar period. Values ​​greater than 0.5 indicate an overbought market, and therefore you should close long positions and shouldn't open new ones. Values ​​less than -0.5 warn against opening short positions, or, if there are open new ones, you should close them.



  • I do not advise to use the indicator with a period of more than 5, as it is designed for short-term systems, so the greater the value of the period - the less reliable is the signal.
  • Example of use as a filter: if you receive a buy signal on the timeframe H1, but on the daily chart in an uptrend the value of the indicator is greater than 0.5 - it is recommended to ignore the signal. In other words, intending to enter the market, check the value of ChangeToRangeRatio on a higher timeframe.

Translated from Russian by MetaQuotes Software Corp.
Original code:

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

PA adaptive MACD PA adaptive MACD

Phase accumulation adaptive MACD - completely adaptive MACD

Basket Chart Creator Basket Chart Creator

Basket offline chart creator script using geometric mean method.