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

Gann HiLo Activator indicator is a simple trend indicator with a colored line.

It has one configurable parameter:

  • Period - calculation period

Calculation:

  • If Direction < 0
    GHLA = AvgH
    Line color - red
  • otherwise
    GHLA = AvgL
    Lien color - green

where:

  • If SW = 0
    Direction = PrevDirection
  • otherwise
    Direction = SW
  • If Close > AvgH
    SW = 1
  • If Close < AvgL
    SW =-1
  • otherwise
    SW = 0

AvgH = SMA(High, Period)

AvgL = SMA(Low, Period)

MetaTrader Experts, Indicators, Scripts and Libraries

22621