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

2014.03.11 13:54

DEMA_RLH - indicator for MetaTrader 5

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

votes: 19
dema_rlh.mq5 (9.28 KB)view

Real author:

Robert Hill

A system of three moving averages. The indicator draws colored clouds on the basis of three MAs:

  1. EMA1=EMA(Price);
  2. EMA2=EMA(EMA1);
  3. DEMA=2*EMA1-EMA2.

The indicator uses SmoothAlgorithms.mqh library classes (must be copied to the terminal_data_folder\MQL5\Include). The use of the classes was thoroughly described in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".

Originally this indicator has been written in MQL4 and was first published in the Code Base on 22.10.2007.

Figure 1. Indicator DEMA_RLH

Figure 1. Indicator DEMA_RLH

Translated from Russian by MetaQuotes Software Corp.
Original code:


The indicator is drawn as a colored cloud between a price and its double averaging.

StepMA_v6.4_HTF StepMA_v6.4_HTF

The StepMA_v6.4 indicator with the timeframe selection option available in input parameters.


The indicator changes the bar color to the color of the current trend calculated based on the TDI-2 custom indicator.

XChannel XChannel

A channel build on the values of two moving averages of High and Low, drawn as a cloud.