TREND, MOVING AVERAGES & STRUCTURE
Supertrend
A single trend line that sits below price in an uptrend and above it in a downtrend, flipping sides when the trend changes.
spec id: supertrendoutputs: line · directionlength (default 10) · mult (default 3)
What does Supertrend measure?
A single trend line that sits below price in an uptrend and above it in a downtrend, flipping sides when the trend changes. `direction` says which: +1 up, −1 down.
How is Supertrend calculated?
Draw a band 3 times the 10-candle average true range above and below the candle midpoint. The line tracks whichever band the trend is on, ratchets in your favour, and only flips when the close breaks through it.
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 Supertrend in a bot?
In the builder, add an indicator of type supertrend (parameters: length, default 10; mult, default 3). 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
- Symmetric WMAA gentle four-candle smoother.
- T3 MAA very smooth trend line that still tracks price closely.
- TEMAAn even quicker version of the double exponential average — about as responsive as a smoothed line gets before it starts chasing noise.
- Triangular MAAn average of an average — extra smooth, and slower to react.
Or browse all 158 indicators in the full library.