TREND, MOVING AVERAGES & STRUCTURE
Gann HiLo
A stop-and-reverse trend line that flips from below the price to above it when the trend changes.
spec id: hilooutputs: line · directionlength (default 13)
What does Gann HiLo measure?
A stop-and-reverse trend line that flips from below the price to above it when the trend changes. `direction` says which side it is on: +1 up, −1 down.
How is Gann HiLo calculated?
Track the 13-candle average of the highs and the 13-candle average of the lows. Closing above the average of highs switches you to up; closing below the average of lows switches you to down. The line then shows whichever average you are trading against.
Written by reading the engine’s real computation, not a textbook — where the two differ, the page describes what actually runs.
How do I use Gann HiLo in a bot?
In the builder, add an indicator of type hilo (parameters: length, default 13). Its output series — line, direction — become operands you can compare in any entry or exit rule. The engine grades the whole rule honestly: real fills, no look-ahead, half the history held back.
Related indicators
- Hull MAA trend line that manages to be both smooth and quick — the usual trade-off, mostly dodged.
- IchimokuA whole trading system in one overlay: two fast trend lines, a cloud of support and resistance ahead, and a lagging line that confirms.
- Kaufman MAA moving average that changes its own speed: quick when the market is trending cleanly, slow and sticky when it is chopping.
- Keltner channelA channel around the trend that widens with volatility.
Or browse all 158 indicators in the full library.