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


EMA_With_Trend_Adjustment - indicator for MetaTrader 5

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

votes: 5
2018.07.13 15:33

EMA_With_Trend_Adjustment - a moving average with exponential smoothing and correction by its trend component.

The indicator has four configured parameters:

  • Alpha - coefficient to calculate EMA;
  • Beta - coefficient to calculate the trend component;
  • Use Trend Adjustment - whether to use correction by trend (Yes/No);
  • Applied price - price used for calculations.


EMATA = Alpha * Price + (1-Alpha) * (PrevEMATA + Trend)
Trend = Beta * (EMATA - PrevEMATA) + (1 - Beta) * PrevTrend


Price - SMA(1, Applied price)

Fig 1. Trend component is not used.

Fig 1. Trend component is not used.

Fig. 2. Trend component is used.

Fig. 2. Trend component is used.

Translated from Russian by MetaQuotes Software Corp.
Original code:

DI_Cluster DI_Cluster

Indicator DI_Cluster represents three indicators ADX with different parameters. Unlike standard ADX, the threshold levels of DI Cluster are not constant, but are determined by the intersections of three indicator lines. You can choose any of the three lines of standard ADX to be displayed: ADX trend strength lines themselves and line +DI or -DI.


Indicator CI (Congestion Identifier). It displays within how many bars before the current one the price was within the channel formed by the Close price of the current bar +/- Delta in points. It also displays the counter value threshold level and the marks, in which the counter is above or below that level.


Indicator EURX displays index EUR.


Indicator FIR is a symmetrically weighted filter (Finite Impulse Response Filter).