OPEN-SOURCE SCRIPT
Regime-Adaptive Trend Engine [AlgoPoint]

Regime-Adaptive Trend Engine adapts the SuperTrend ATR multiplier
dynamically based on real-time market regime detection.
Instead of a fixed multiplier (e.g., 3x ATR), this indicator uses a
4-component weighted regime score — ADX strength, volatility ratio,
price efficiency, and trend consistency — to tighten the band in
trending markets (earlier entries) and widen it in choppy conditions
(fewer false signals).
🔹 HOW IT WORKS
1. REGIME DETECTOR
• ADX Strength (30%) — normalized 0–1 from ADX 15–35 range
• Volatility Ratio (30%) — short-term vs long-term ATR expansion
• Price Efficiency (25%) — directional movement vs total noise
• Trend Consistency (15%) — % of bars aligned with current bias
2. ADAPTIVE MULTIPLIER
Regime Score 0–1 → ATR Multiplier linearly interpolated:
• Trending (score ≥ 0.7): tight 2.0–2.9x
• Transition (score 0.4–0.7): balanced 2.9–4.1x
• Choppy (score < 0.4): wide 4.1–5.0x
3. SUPERTREND ENGINE
Standard SuperTrend logic with dynamic multiplier.
Bands clamp to prevent repainting.
🔹 FEATURES
• Real-time regime dashboard (score %, multiplier, state label)
• Regime background gradient (intensity = confidence)
• LONG/SHORT signal labels at trend changes
• Alert conditions for entries and regime shifts
• 11 customizable input parameters
• No repainting — uses only confirmed bar data
🔹 HOW TO USE
• Monitor the dashboard: green = trend, yellow = transition, red = chop
• In trending regime: trust tighter signals for early entries
• In choppy regime: bands widen automatically — wait for confirmation
• Combine with volume analysis for higher-probability setups
• Use alerts for automated trend change notifications
The indicator does not predict direction — it measures market state
and adapts sensitivity accordingly. Your decision, your trade.
dynamically based on real-time market regime detection.
Instead of a fixed multiplier (e.g., 3x ATR), this indicator uses a
4-component weighted regime score — ADX strength, volatility ratio,
price efficiency, and trend consistency — to tighten the band in
trending markets (earlier entries) and widen it in choppy conditions
(fewer false signals).
🔹 HOW IT WORKS
1. REGIME DETECTOR
• ADX Strength (30%) — normalized 0–1 from ADX 15–35 range
• Volatility Ratio (30%) — short-term vs long-term ATR expansion
• Price Efficiency (25%) — directional movement vs total noise
• Trend Consistency (15%) — % of bars aligned with current bias
2. ADAPTIVE MULTIPLIER
Regime Score 0–1 → ATR Multiplier linearly interpolated:
• Trending (score ≥ 0.7): tight 2.0–2.9x
• Transition (score 0.4–0.7): balanced 2.9–4.1x
• Choppy (score < 0.4): wide 4.1–5.0x
3. SUPERTREND ENGINE
Standard SuperTrend logic with dynamic multiplier.
Bands clamp to prevent repainting.
🔹 FEATURES
• Real-time regime dashboard (score %, multiplier, state label)
• Regime background gradient (intensity = confidence)
• LONG/SHORT signal labels at trend changes
• Alert conditions for entries and regime shifts
• 11 customizable input parameters
• No repainting — uses only confirmed bar data
🔹 HOW TO USE
• Monitor the dashboard: green = trend, yellow = transition, red = chop
• In trending regime: trust tighter signals for early entries
• In choppy regime: bands widen automatically — wait for confirmation
• Combine with volume analysis for higher-probability setups
• Use alerts for automated trend change notifications
The indicator does not predict direction — it measures market state
and adapts sensitivity accordingly. Your decision, your trade.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Elevate Your Trading ▶ qalphatrade.com
Trade with mathematical certainty,
not emotional guesswork.
Trade with mathematical certainty,
not emotional guesswork.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat TradingView sebenar, pencipta skrip ini telah menjadikannya sumber terbuka, jadi pedagang boleh menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupuan anda boleh menggunakan secara percuma, ingat bahawa penerbitan semula kod ini tertakluk kepada Peraturan Dalaman.
Elevate Your Trading ▶ qalphatrade.com
Trade with mathematical certainty,
not emotional guesswork.
Trade with mathematical certainty,
not emotional guesswork.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.