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

Or browse all 158 indicators in the full library.

Build a bot that trades on Gann HiLo — the first backtest is free.

Run a free backtest