Gann HiLo Activator
By LuxAlgoJun 23, 2026
Gann HiLo Activator is an indicator on Vela, our next-generation charting platform, written in Pine Script®.
Gann HiLo Activator trails price with a stepped line that swaps sides only on a close through it: while the state is up the line is a short average of the lows under price; when a close breaks it, the state flips and the average of the highs takes over above. This is the definitive clean build of the Gann HiLo Activator: Krausz's construction, comparing each close against the previous bar's averages, with only visual and alert plumbing added. Because only closes flip the state, intrabar pokes leave it unchanged; this build turns those pokes into signals of their own.
How to Trade the Gann HiLo Activator?
- Bullish flip: a close above the high-side average. The line jumps beneath price and trend-followers treat it as the entry or re-entry cue; bearish flips mirror it.
- Trailing stop reference: the active line is a natural stop rail. Up-state positions exit on the close that flips the state rather than on a wick touch.
- Pullback tests that held: an intrabar poke through the line that closes back on the trend side (alertable both ways) marks an absorbed test, often a lower-risk continuation entry than the flip itself.
Gann HiLo Activator Settings
- Length (default 3): lookback of both averages, the classic default from Krausz's construction. Longer flips less often and trails looser; shorter hugs price and whipsaws in ranges.
- Average Type (default SMA): the classic simple average, or the EMA / VWMA substitutions from later variants.
- Flip Markers (default enabled): a dot on the new side of price at each state flip.
- Gradient Trail Fill (default enabled): shades the span between price and the line, the room a close has left before the state would flip.
- Bullish/bearish colors and Line Width (default 1) are cosmetic.
Frequently Asked Questions
Free to use
Run it on Vela. Go further with a paid plan.
- Up to 500 Custom Alerts, with webhook automation
- Up to 10× the chart history of Free
- Orderflow lookback up to full history
- More Quant usage to customize it, plus extra usage when you need it
- Futures data alongside crypto, stocks, forex and commodities
Related indicators
Run it on Vela. Make it yours with Quant.
Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.





