Momentum Fusion (CCI + RSI)1. The CCI Engine (Trend & Deviation)
The White Line: Represents the raw Commodity Channel Index. It measures how far the current price is from its statistical average.
The Yellow Line: An EMA (Exponential Moving Average) of the CCI. This acts as a "trigger." Instead of buying the moment the CCI turns up, you wait for the White line to cross the Yellow line, confirming a shift in momentum.
Key Zones:
Above +100: Strong Bullish Trend (Common in your IREN and SNDK holdings).
Below -100: Strong Bearish Trend or "Oversold" (Watch for this in NEM or APA).
2. The RSI Filter (Velocity & Exhaustion)
The Aqua Line: Represents the Relative Strength Index.
The Scaling: Since RSI usually lives between 0–100 and CCI fluctuates between -200 and +200, the script automatically "stretches" the RSI so you can compare it directly to the CCI on the same pane.
Logic: It prevents "chasing." If the CCI tells you to buy, but the RSI is already near the top of the chart, the script will be cautious.
3. Visual Alerts & "Fusion" Signals
Buy Label (Green): Appears when the CCI crosses back above the -100 line (recovering from a dip) AND the RSI is below 40 (meaning there is plenty of "room" to grow before the stock gets tired).
Sell Label (Red): Appears when the CCI crosses below +100 (losing steam) AND the RSI is above 60 (indicating the move is likely exhausted).
Background Highlighting: * Green Shading: High-conviction buying zone (Extreme Oversold).
Pine Script®指标






















