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

Deviation Oscillator - a volatility oscillator which represents a difference between the price and the MA, normalized within the selected range.

There are four input parameters:

  • MA period - MA period;
  • Min/Max period - the range of values for normalization;
  • Method - calculation method;
  • Applied price - price used for calculations.

Calculations:

DO = nf * (PD - Min) - 100.0

where:

PD = Applied price - MA(Applied price, MA period, Method)  nf = 200.0 / (Max-Min)  
  • Max, Min - the maximum and minimum PD values in the 'Min/Max period' range.

MetaTrader Experts, Indicators, Scripts and Libraries

21713