Supertrend
ATR trailing band that ratchets with the trend and flips sides on a close through it. The direction line reads +1 in an uptrend, −1 in a downtrend.
Supertrend
Definition
ATR trailing band that ratchets with the trend and flips sides on a close through it. The direction line reads +1 in an uptrend, −1 in a downtrend.
Parameters
Asset, Lookback period (10), Multiplier (3), Line (value | direction)
Output range: Price scale (value); +1 / −1 (direction)
Example
`Supertrend(AAPL, 10, 3, direction) > 0` (Uptrend regime)
Usage notes
Use direction as a regime filter for entries, not the entry itself — it flips late by construction.
Full indicator reference