OPEN-SOURCE SCRIPT

VASA Trend (Supertrend)

403
A single, honest read on trend direction: an ATR-scaled trend line that flips with the market, with flip markers that only print once a bar has closed.

How it works: the line sits an ATR multiple away from price; when price closes through it, the trend flips and the line jumps to the other side. Because the offset is volatility-based (ATR), the line breathes with the instrument instead of using a fixed distance. Flip markers and alerts are gated to confirmed bar close.

How to use: trade with the line's direction; use flips as context/exit prompts, not blind entries. Widen the ATR multiplier for fewer, larger swings; tighten it for more responsiveness.

Non-repainting: a flip printed on a closed bar never disappears. Set alerts to "Once Per Bar Close."

Educational only — not financial advice. Trading involves substantial risk of loss.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.