OPEN-SOURCE SCRIPT
Volatility Regime Supertrend [SeerQuant]

Volatility Regime Supertrend (VRST) [SeerQuant]
The Volatility Regime Supertrend (VRST) is an adaptive Supertrend that changes its trailing behavior based on whether the market is historically compressed or expanded in volatility. It keeps the familiar Supertrend structure (ATR-based trailing bands + trend direction flips), but replaces the “one-size-fits-all” multiplier with a regime-aware multiplier that tightens during squeezes and widens during volatility expansions.
⚙️How It Works
VRST first measures volatility using Bollinger Bandwidth, then ranks the current bandwidth against its own history to get a 0–100 “how compressed vs expanded” score. Low scores mean compression; high scores mean expansion. That score controls the ATR multiplier used by the Supertrend, and the multiplier is smoothed so band width transitions don’t jump.
Then VRST calculates a normal Supertrend, with one extra control: Speed. Speed adjusts how quickly the trailing bands track their new positions, letting you choose between smoother behavior and faster reaction. Trend direction flips when price breaks the prior band, and signals only print on those flips.
Key mechanics:
🚀Why It’s Useful
VRST is meant to stop you from forcing one Supertrend setting across every market condition. It changes band width with volatility so the same indicator can behave sensibly in both tight ranges and fast moves, while still remaining a clean “trend state” tool (bull/bear + flip signals).
📜Disclaimer
This indicator is for educational purposes only and does not constitute financial advice. Past performance does not guarantee future results. Always consult a licensed financial advisor before making trading decisions. Use at your own risk.
The Volatility Regime Supertrend (VRST) is an adaptive Supertrend that changes its trailing behavior based on whether the market is historically compressed or expanded in volatility. It keeps the familiar Supertrend structure (ATR-based trailing bands + trend direction flips), but replaces the “one-size-fits-all” multiplier with a regime-aware multiplier that tightens during squeezes and widens during volatility expansions.
⚙️How It Works
VRST first measures volatility using Bollinger Bandwidth, then ranks the current bandwidth against its own history to get a 0–100 “how compressed vs expanded” score. Low scores mean compression; high scores mean expansion. That score controls the ATR multiplier used by the Supertrend, and the multiplier is smoothed so band width transitions don’t jump.
Then VRST calculates a normal Supertrend, with one extra control: Speed. Speed adjusts how quickly the trailing bands track their new positions, letting you choose between smoother behavior and faster reaction. Trend direction flips when price breaks the prior band, and signals only print on those flips.
Key mechanics:
- Volatility regime = Bollinger Bandwidth ranked vs history
- Multiplier adapts: compression → tighter, expansion → wider, mid-zone → blended
- Bands are ATR-based and use standard Supertrend trailing logic
- Speed controls band responsiveness (slow/smooth → fast/reactive)
🚀Why It’s Useful
VRST is meant to stop you from forcing one Supertrend setting across every market condition. It changes band width with volatility so the same indicator can behave sensibly in both tight ranges and fast moves, while still remaining a clean “trend state” tool (bull/bear + flip signals).
📜Disclaimer
This indicator is for educational purposes only and does not constitute financial advice. Past performance does not guarantee future results. Always consult a licensed financial advisor before making trading decisions. Use at your own risk.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Analytics & Charting Platform 👉 seerquant.org
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Analytics & Charting Platform 👉 seerquant.org
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.