Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | StepMA_3D_v3

Actual author: TrendLaboratory

A trend indicator with three moving averages having different periods, using the Average True Range in calculations.

//+----------------------------------------------+  //| Indicator input parameters                   |  //+----------------------------------------------+  input uint    Length       = 10;         // ATR period  input double  Kv           =  1.000001;  // Sensitivity of the price change  input ENUM_MA_MODE MA_Mode = MODE_SMA_;  // ATR averaging method  input int     ShiftMIN     =  0;         // horizontal shift of the fast trend indicator, in bars  input int     ShiftMID     =  0;         // horizontal shift of the medium trend indicator, in bars  input int     ShiftMAX     =  0;         // horizontal shift of the slow trend indicator, in bars  

Green Moving Average is a fast trend indicator. The red and blue MAs determine a slow trend. If the blue line is above the red one, the trend is growing, otherwise it is falling.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. The StepMA_3D_v3 indicator

21846