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

Larry Williams' WILL VAL oscillator.

It has six input parameters:

  • Instrument - instrument name, relative to which the calculation is made
  • First EMA period - first exponential smoothing period
  • Second EMA period - second exponential smoothing period
  • Period - indicator calculation period
  • Overbought - overbought level
  • Oversold - oversold level

Calculation:

WV = 100.0 * (Value - Min) / (Max-Min)

where:

Value = MA1-MA2 MA1 - EMA(Price, First EMA period) MA2 - EMA(Price, Second EMA period) Max, Min - maximum and minimum 'Value' values in the Period range Price = Close(Current Instrument) / Close(Instrument)

Keep in mind that the indicator needs to upload history data of a selected instrument during the first launch or when changing 'Instrument'. If the re-drawing does not occur quickly or the indicator is displayed incorrectly, simply switch the chart timeframe to accelerate the process and obtain a correct display.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. Calculation relative to EURJPY

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. Calculation relative to XAUDUSD

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 3. Calculation relative to USDRUB

22099