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

Hurst oscillator. Two indicators: Hurst oscillator and Hurst bands are described in Jim Hurst's "The Magic of Stock Transaction Timing" book

The indicator has two input parameters:

  • Period - calculation period
  • Smoothing - smoothing period

Calculation:

HO = MA - CMA[Period/2-1]

where:

CMA = SMA(PRICE_MEDIAN, Period) MA  = SMA(FlowValue, Smoothing)

  • If Close > PrevClose
    FlowValue = High  
  • If Close < PrevClose
    FlowValue = Low
  • If Close == PrevClose
    FlowValue = (High+Low)/2

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. Hurst oscillator

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. Hurst oscillator and Hurst bands

22199