TREND, MOVING AVERAGES & STRUCTURE

Alligator

Three smoothed price lines drawn as a sleeping animal's jaw, teeth and lips.

spec id: alligatoroutputs: jaw · teeth · lipslength (default 14)

What does Alligator measure?

Three smoothed price lines drawn as a sleeping animal's jaw, teeth and lips. When they are tangled together the market is resting; when they fan apart, a trend is feeding.

How is Alligator calculated?

Take each candle's midpoint (high and low, halved). Smooth it three times with three running averages of different speeds — 13 candles for the jaw, 8 for the teeth and 5 for the lips — each keeping most of its previous value.

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 Alligator in a bot?

In the builder, add an indicator of type alligator (parameters: length, default 14). Its output series — jaw, teeth, lips — 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 Alligator — the first backtest is free.

Run a free backtest