OPEN-SOURCE SCRIPT
(RSI + CCI) × (MACD/ATR)^2

⚙️ (RSI + CCI) × (MACD / ATR)² Composite — Normalized, Compressed, Dynamic Colors
This advanced composite oscillator merges three powerful momentum indicators — RSI, CCI, and MACD — into one normalized and volatility-adjusted signal that reacts smoothly across all markets.
By dividing MACD by ATR (Average True Range), the indicator self-scales for different symbols, and an optional tanh-like compression prevents extreme spikes while keeping the movement fluid and responsive.
🧩 Core Formula
(RSI + CCI) × (MACD / ATR)²
(optionally passed through a tanh compression for stability)
RSI and CCI are normalized (RSI ÷ 50, CCI ÷ 100) → roughly −2 to +2 range.
MACD is volatility-adjusted by ATR → scale-independent between assets.
The result is centered around 0 for clear bullish/bearish momentum comparison.
🎨 Visual Features
🟢🔴 Dynamic 4-Color Histogram
Positive + Rising = Strong Teal
Positive + Falling = Light Teal
Negative + Falling = Strong Red
Negative + Rising = Light Red
🟡⚫ 4-Color Smoothing Line
Positive & Rising = Bright Yellow
Positive & Falling = Soft Yellow
Negative & Rising = Grey
Negative & Falling = Dark Grey
Zero-centered layout for intuitive bullish/bearish visualization.
⚙️ Adjustable Parameters
Individual RSI, CCI, and MACD lengths and sources.
ATR length for volatility normalization.
Optional tanh-style compression with adjustable gain (to keep values in ±1 range).
Fully customizable colors and line widths for both bars and smoothing line.
🔔 Alerts
Triggered automatically when the composite crosses above or below zero, signaling potential trend reversals or momentum shifts.
💡 How to Use
Composite > 0 → Bullish momentum ↑
Composite < 0 → Bearish momentum ↓
A brightening line or bar = momentum accelerating.
A fading color = momentum weakening or reversal forming.
Combine with higher-timeframe trend filters (EMA, VWAP, Supertrend) for confirmation.
This advanced composite oscillator merges three powerful momentum indicators — RSI, CCI, and MACD — into one normalized and volatility-adjusted signal that reacts smoothly across all markets.
By dividing MACD by ATR (Average True Range), the indicator self-scales for different symbols, and an optional tanh-like compression prevents extreme spikes while keeping the movement fluid and responsive.
🧩 Core Formula
(RSI + CCI) × (MACD / ATR)²
(optionally passed through a tanh compression for stability)
RSI and CCI are normalized (RSI ÷ 50, CCI ÷ 100) → roughly −2 to +2 range.
MACD is volatility-adjusted by ATR → scale-independent between assets.
The result is centered around 0 for clear bullish/bearish momentum comparison.
🎨 Visual Features
🟢🔴 Dynamic 4-Color Histogram
Positive + Rising = Strong Teal
Positive + Falling = Light Teal
Negative + Falling = Strong Red
Negative + Rising = Light Red
🟡⚫ 4-Color Smoothing Line
Positive & Rising = Bright Yellow
Positive & Falling = Soft Yellow
Negative & Rising = Grey
Negative & Falling = Dark Grey
Zero-centered layout for intuitive bullish/bearish visualization.
⚙️ Adjustable Parameters
Individual RSI, CCI, and MACD lengths and sources.
ATR length for volatility normalization.
Optional tanh-style compression with adjustable gain (to keep values in ±1 range).
Fully customizable colors and line widths for both bars and smoothing line.
🔔 Alerts
Triggered automatically when the composite crosses above or below zero, signaling potential trend reversals or momentum shifts.
💡 How to Use
Composite > 0 → Bullish momentum ↑
Composite < 0 → Bearish momentum ↓
A brightening line or bar = momentum accelerating.
A fading color = momentum weakening or reversal forming.
Combine with higher-timeframe trend filters (EMA, VWAP, Supertrend) for confirmation.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
HK-Uk Hoiliday Trader, Short-term programme trade, Forex-Commodities-Crypto, 2005-2023
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
HK-Uk Hoiliday Trader, Short-term programme trade, Forex-Commodities-Crypto, 2005-2023
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.