OPEN-SOURCE SCRIPT
Adaptive Trend Regime

Adaptive Trend Regime
Adaptive Trend Regime is a market regime detection indicator designed to identify whether the market is trending bullish, trending bearish, or moving sideways.
The indicator combines EMA alignment, ADX trend strength, and EMA slope momentum to filter market noise and highlight only meaningful directional movement.
Instead of reacting to every price fluctuation, this tool focuses on detecting sustained market conditions.
━━━━━━━━━━━━━━━━━━
How It Works
The background zone changes color depending on market regime:
🟢 Bullish Trend — Strong upward momentum
🔴 Bearish Trend — Strong downward momentum
🟡 Range — Low momentum or consolidation
━━━━━━━━━━━━━━━━━━
Parameters
━━━━━━━━━━━━━━━━━━
Best Usage
• Trend-following strategies
• Market regime filtering
• Trade confirmation
• Avoiding low-momentum environments
Works across all markets and timeframes.
━━━━━━━━━━━━━━━━━━
Notes
This indicator does not provide buy or sell signals.
It is intended to help traders understand market conditions and trade in alignment with prevailing momentum.
Adaptive Trend Regime is a market regime detection indicator designed to identify whether the market is trending bullish, trending bearish, or moving sideways.
The indicator combines EMA alignment, ADX trend strength, and EMA slope momentum to filter market noise and highlight only meaningful directional movement.
Instead of reacting to every price fluctuation, this tool focuses on detecting sustained market conditions.
━━━━━━━━━━━━━━━━━━
How It Works
- Fast and Slow EMAs determine market direction.
- ADX measures trend strength and filters ranging markets.
- EMA slope confirms momentum and removes weak trends.
- Volatility-adjusted zones adapt dynamically using ATR.
The background zone changes color depending on market regime:
🟢 Bullish Trend — Strong upward momentum
🔴 Bearish Trend — Strong downward momentum
🟡 Range — Low momentum or consolidation
━━━━━━━━━━━━━━━━━━
Parameters
- Fast EMA Length
Controls short-term market direction sensitivity. - Slow EMA Length
Defines the broader trend structure. - ADX Threshold
Minimum trend strength required to classify the market as trending.
Higher values produce more conservative signals. - Slope Dead Zone (%)
Filters small EMA movements considered market noise.
Increasing this value reduces false trend detection. - Slope Lookback
Number of bars used to calculate EMA slope momentum. - ATR Multiplier
Controls the size of the displayed trend zone relative to market volatility.
━━━━━━━━━━━━━━━━━━
Best Usage
• Trend-following strategies
• Market regime filtering
• Trade confirmation
• Avoiding low-momentum environments
Works across all markets and timeframes.
━━━━━━━━━━━━━━━━━━
Notes
This indicator does not provide buy or sell signals.
It is intended to help traders understand market conditions and trade in alignment with prevailing momentum.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.