OPEN-SOURCE SCRIPT
Cập nhật CCI [Hash Adaptive]

Adaptive CCI Pro: Professional Technical Analysis Indicator
The Commodity Channel Index is a momentum oscillator developed by Donald Lambert in 1980. CCI measures the relationship between an asset's price and its statistical average, identifying cyclical turns and overbought/oversold conditions. The indicator oscillates around zero, with values above +100 indicating overbought conditions and values below -100 suggesting oversold conditions.
Standard CCI Formula: (Typical Price - Moving Average) / (0.015 × Mean Deviation)
This indicator transforms the traditional CCI into a sophisticated visual analysis tool through several key enhancements:
Dynamic Color Visualization System
Adaptive Intelligence Features
Momentum Vector Analysis
Extreme Level Analysis
Optimization Parameters
Smoothing Factor (Default: 5)
Signal Sensitivity (Default: 6)
Strategic Implementation
Risk Management
Market Context Application
Professional Advantages
Adaptive Technology
The Adaptive CCI Pro represents the evolution of momentum analysis, combining Lambert's foundational CCI concept with modern computational techniques to deliver institutional-grade market intelligence through an intuitive visual interface.
The Commodity Channel Index is a momentum oscillator developed by Donald Lambert in 1980. CCI measures the relationship between an asset's price and its statistical average, identifying cyclical turns and overbought/oversold conditions. The indicator oscillates around zero, with values above +100 indicating overbought conditions and values below -100 suggesting oversold conditions.
Standard CCI Formula: (Typical Price - Moving Average) / (0.015 × Mean Deviation)
This indicator transforms the traditional CCI into a sophisticated visual analysis tool through several key enhancements:
- Implements dual exponential moving average smoothing to eliminate market noise
- Preserves signal integrity while reducing false signals
- Adaptive smoothing responds to market volatility conditions
Dynamic Color Visualization System
- Continuous gradient transitions from red (bearish momentum) to green (bullish momentum)
- Real-time color intensity reflects momentum strength
- Eliminates discrete color jumps for fluid visual interpretation
Adaptive Intelligence Features
- Dynamic overbought/oversold thresholds adapt to market conditions
- Reduces false signals during high volatility periods
- Maintains sensitivity during low volatility environments
Momentum Vector Analysis
- Incorporates velocity calculations for early trend identification
- Crossover detection with momentum confirmation
- Advanced signal filtering reduces market noise
Extreme Level Analysis
- Values above +100: Strong overbought conditions, potential reversal zones
- Values below -100: Strong oversold conditions, potential buying opportunities
- Zero-line crossovers: Momentum shift confirmation
Optimization Parameters
- CCI Period (Default: 14)
- Shorter periods (10-12): Increased sensitivity, more signals
- Standard periods (14-20): Balanced responsiveness and reliability
- Longer periods (21-30): Reduced noise, stronger signal confirmation
Smoothing Factor (Default: 5)
- Lower values (1-3): Maximum responsiveness, suitable for scalping
- Medium values (4-6): Balanced approach for swing trading
- Higher values (7-10): Institutional-grade smoothness for position trading
Signal Sensitivity (Default: 6)
- Conservative (7-10): High-probability signals, reduced frequency
- Balanced (5-6): Optimal risk-reward ratio
- Aggressive (1-4): Maximum signal generation, requires additional confirmation
Strategic Implementation
- Oversold reversals in red zones with momentum confirmation
- Zero-line breaks with sustained color transitions
- Extreme readings followed by momentum divergence
Risk Management
- Use extreme levels (+100/-100) for position sizing decisions
- Monitor color intensity for momentum strength assessment
- Combine with price action analysis for comprehensive market view
Market Context Application
- Trending markets: Focus on momentum direction and extreme readings
- Range-bound markets: Utilize overbought/oversold levels for mean reversion
- Volatile markets: Increase smoothing parameters and signal sensitivity
Professional Advantages
- Instantaneous momentum assessment through color visualization
- Reduced cognitive load compared to traditional oscillators
- Professional presentation suitable for client reporting
Adaptive Technology
- Self-adjusting parameters reduce manual optimization requirements
- Consistent performance across varying market conditions
- Advanced mathematics eliminate common CCI limitations
The Adaptive CCI Pro represents the evolution of momentum analysis, combining Lambert's foundational CCI concept with modern computational techniques to deliver institutional-grade market intelligence through an intuitive visual interface.
Phát hành các Ghi chú
What’s newRegular Divergences (CCI):
- Bullish: price makes a lower low while CCI makes a higher low.
- Bearish: price makes a higher high while CCI makes a lower high.
Toggle & Performance:
- New “Calculate Divergences” checkbox in CCI Settings (ON by default).
- Tooltip explains it’s required for divergence alerts & visuals. Turn it OFF to lighten CPU on lower TFs.
Visual Signals:
- Green “Bull” labels below the CCI for bullish divs; red “Bear” labels above for bearish divs.
- Connecting lines illustrate the divergence. All visuals can be toggled in Style.
- Enhanced Extreme Levels:
- Cleaned up the extreme level lines for readability and consistency with CCI dynamics.
Alerts:
- Added “Regular Bullish Divergence” and “Regular Bearish Divergence” alert conditions.
- These run alongside the existing momentum/reversal alerts.
- Parity with RSI version
- Divergence logic is the RSI module’s analog, recalibrated for CCI ranges and momentum behavior. Expect the same workflow with CCI-appropriate thresholds.
Notes: Divergences are an early-warning tool—best used with your existing trend/band context. Disable divergence calculation if you need maximum performance.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội Quy.
Quant research firm developing proprietary indicators, trading automation, and risk frameworks for digital & macro markets. Free indicator channel (telegram) t.me/hashcapitalresearchchannel I hashadaptive.com
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.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội Quy.
Quant research firm developing proprietary indicators, trading automation, and risk frameworks for digital & macro markets. Free indicator channel (telegram) t.me/hashcapitalresearchchannel I hashadaptive.com
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.