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

2012.12.20 07:26

XXMA - indicator for MetaTrader 5

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

votes: 32
xxma.mq5 (7.22 KB)view

The real author:

Xrust & Vinin

A digital adaptive Moving Average XXMA represents subtype of Moving Averages with a digital flat-trend filter and is made to separate the angular direction of price movement (trend) from the horizontal (flat) direction for effective trend trading.

As you can see on the figure, during the trend movement of the price XXMA line stays over or under the price chart constantly changing its meaning and drawing bounding line, and during the horizontal movement (flat) it stays in a fixed position. The signal to enter into the deal is closing bar above or below the indicator line on the slant, while the signal to close the position is crossing or closing of the indicator line into the opposite side on the horizontal position.

This indicator was first implemented in MQL4 and published in Code Base on 17.08.2009.

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".

Fig.1 The XXMA indicator

Fig.1 The XXMA indicator

Translated from Russian by MetaQuotes Software Corp.
Original code:

HeikinAshi_SepWnd HeikinAshi_SepWnd

The Heikin Ashi indicator drawn in a separate subwindow with the ability to choose a period

Gaus_MA Gaus_MA

The indicator calculates the Moving Average using a modified algorithm of the linearly weighed Moving Average.

XATRStopLevel XATRStopLevel

The indicator gives Stop Loss value for open position on the basis of the XATR indicator.

Trend Continuation Factor Trend Continuation Factor

The indicator to determine the trend and its directions.