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 | AnchoredMomentum

The real author:

Umnyashkin Victor

The full investigation was conducted by Konstantin Kopyrkin. 

The formula for the calculation:

Anchored Momentum = 100 * (EMA[Price, EmaPeriod]  /  SMA[Price, SmaPeriod]  - 1

Indicator input parameters:

//+-----------------------------------+
//| INDICATOR INPUT PARAMETERS        |
//+-----------------------------------+
input uint MomPeriod=8; //the period of SMA 
input uint SmoothPeriod=6; //the period of EMA
input ENUM_APPLIED_PRICE IPC=PRICE_CLOSE;//price constant on which the indicator calculation is performed
input double UpLevel=+0.025; //upper breakthrough level
input double DnLevel=-0.025; //lower breakthrough level
input int Shift=0; //horizontal shift of the indicator in bars
//+-----------------------------------+

This indicator was first implemented in MQL4 and published in Code Base at mql4.com on 08.10.2012

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.1 The AnchoredMomentum indicator 

1233

Best MetaTrader Indicators + Profitable Expert Advisors