OPEN-SOURCE SCRIPT

Adaptive Trend Regime

613
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

  1. Fast and Slow EMAs determine market direction.
  2. ADX measures trend strength and filters ranging markets.
  3. EMA slope confirms momentum and removes weak trends.
  4. 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

  1. Fast EMA Length
    Controls short-term market direction sensitivity.
  2. Slow EMA Length
    Defines the broader trend structure.
  3. ADX Threshold
    Minimum trend strength required to classify the market as trending.
    Higher values produce more conservative signals.
  4. Slope Dead Zone (%)
    Filters small EMA movements considered market noise.
    Increasing this value reduces false trend detection.
  5. Slope Lookback
    Number of bars used to calculate EMA slope momentum.
  6. 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.

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.