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 | DPO - MA modified

MA modified DPO facilitate controlling all parameters of MA (MA period , MA mode , MA applied price) to change required MA curve to horizontal line and can easily used as support or resistance level

MetaTrader Experts, Indicators, Scripts and Libraries

MetaTrader Experts, Indicators, Scripts and Libraries

Calculation:

DPO = close - MA (mode, price, DPO_period)

Where :

  • DPO - DPO indicator value
  • close - close price of bar;
  • mode - applied method to calculate MA (SMA, EMA, SMMA, LWMA)
  • price - applied price to calculate MA
  • DPO_period - period applied to calculate MA.

MT4 version available at https://www.mql5.com/en/code/50863

50822