Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
4856
Rating:
(23)
Published:
2012.12.14 14:16
Updated:
2023.03.29 13:42
\MQL5\Include\
sumxma.mq5 (7.3 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The real author:

jax1000

This indicator calculates the averaging amount of the different period Moving Averages. Moreover, the interval of the averaging period is set by the user.

Indicator input parameters:

//+----------------------------------------------+
//| INDICATOR INPUT PARAMETERS                   |
//+----------------------------------------------+
input Smooth_Method XMA_Method=MODE_SMA; // Averaging method
input uint StartLength=20;               // Averaging period
input uint EndLength=100;                // Final averaging period
input int XPhase=15;                     // Smoothing parameter
input int Shift=0;                       // Horizontal shift of the indicator in bars
input int PriceShift=0;                  // Vertical shift of the indicator in points

This indicator was first implemented in MQL4 and published in Code Base on 30.11.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 SumXMA indicator

Fig.1 The SumXMA indicator

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/1241

LineBreakOnChart LineBreakOnChart

The indicator of (three) linear reversal on the main chart

Exp_UltraWPR Exp_UltraWPR

The Expert Advisor using the UltraWPR indicator.

SumRSI SumRSI

The averaging amount of the RSI different period oscillators

GG-RSI-CCI GG-RSI-CCI

The offered indicator informs you about the current trend. It is useful for entering the trading.