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 Indicators | NonLagMA_v5 | MQL5 Code

New free code from MQL5: indicators, EAs, and scripts for traders.

Real author:

TrendLaboratory

This is a moving where effect of retardation is lessened by means of damped cosinusoid defining coefficients' ratios in equation of the linearly weighted average (LWMA).

Classic MACD strategy made fully automatic – the MACD Expert Advisor for MT4 handles it all. Check it out.

Statical filter (in points) helps to remove small spurts of the medium which gives a shape of stair-stepping.

Input Parameters:

//+-----------------------------------+
//| Input parameters of the indicator |
//+-----------------------------------+
input int                 MAPeriod       = 13;          // Period
input  ENUM_MA_METHOD     MAType         = MODE_EMA;    // Type of averaging
input ENUM_APPLIED_PRICE  MAPrice        = PRICE_CLOSE; // Price
input uint                Filter         = 0;           // Static filter in points  
input uint                ColorBarBack   = 1;           // Bar back for color mode
input double              Deviation      = 0;           // Up/down deviation  
input int                 Shift          = 0;           // Horizontal shift of the indicator in bars

This indicator was first implemented in MQL4 and published in CodeBase on September 21, 2006.

Fig.1. NonLagMA_v5 Indicator

Fig.1. NonLagMA_v5 Indicator

Thanks for reading. Discover premium MetaTrader solutions at RobotFX.

7022

Best MetaTrader Indicators + Profitable Expert Advisors