OPEN-SOURCE SCRIPT
Market Regime Lite

Market Regime Lite
A background-coloring indicator that tells you what kind of market you're in.
What It Does
Every bar, it reads ADX, ATR, volume, and price structure together and classifies the market into one of five states:
🟢 Trending — Strong momentum, expanding volatility, clean structure. Trade with the trend.
🔴 Exhaustion — Trend is overextended. Climactic volume, ADX rolling over.
🟠 Distribution — Trend is dying. Lower highs forming, participation fading.
🔵 Accumulation — Low volatility, low volume, subtle higher lows. Something is building.
⚫ Choppy — No edge, Flat everything.
How It Classifies
Each regime gets a score out of 5. Whichever scores highest (minimum 3) wins. If nothing clears the threshold, it defaults to Choppy.
Settings
ADX / ATR Length — 14 default, standard momentum and volatility lookback
ATR Percentile Lookback — 100 bars by default, ranks current volatility vs history
Volume MA Length — 20-bar baseline for volume comparison
Structure Lookback — Controls how significant a swing high/low needs to be
On the Chart
The background fills with the regime color. The top-right table shows the regime name, its score, and live ADX / ATR% / Volume readings.
A background-coloring indicator that tells you what kind of market you're in.
What It Does
Every bar, it reads ADX, ATR, volume, and price structure together and classifies the market into one of five states:
🟢 Trending — Strong momentum, expanding volatility, clean structure. Trade with the trend.
🔴 Exhaustion — Trend is overextended. Climactic volume, ADX rolling over.
🟠 Distribution — Trend is dying. Lower highs forming, participation fading.
🔵 Accumulation — Low volatility, low volume, subtle higher lows. Something is building.
⚫ Choppy — No edge, Flat everything.
How It Classifies
Each regime gets a score out of 5. Whichever scores highest (minimum 3) wins. If nothing clears the threshold, it defaults to Choppy.
Settings
ADX / ATR Length — 14 default, standard momentum and volatility lookback
ATR Percentile Lookback — 100 bars by default, ranks current volatility vs history
Volume MA Length — 20-bar baseline for volume comparison
Structure Lookback — Controls how significant a swing high/low needs to be
On the Chart
The background fills with the regime color. The top-right table shows the regime name, its score, and live ADX / ATR% / Volume readings.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.