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.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.