This indicator combines the power of the Commodity Channel Index (CCI) with adaptive trend filters and divergence detection to identify high-probability trading opportunities. It's designed to reduce false signals by incorporating trend direction and divergence confirmation.
🔍 How It Works:
1. Trend Detection: - Uses an adaptive Simple Moving Average (SMA) that automatically adjusts between daily and weekly timeframes - Daily mode: Default 200 SMA for longer-term trend - Weekly mode: Default 40 SMA for broader market perspective - Trend direction is determined by comparing current SMA value to its previous value
2. CCI Component: - Traditional CCI calculation with customizable length (default: 20) - Adjustable overbought (default: +100) and oversold (default: -100) levels - Color-coded CCI line for quick visual reference: * Green: Overbought and rising * Red: Oversold and falling * Gray: Neutral zone
3. Signal Generation: - Buy Signal (Green Background): * CCI crosses above oversold level AND * Main trend is confirmed bullish (rising SMA) - Sell Signal (Red Background): * CCI crosses below overbought level AND * Main trend is confirmed bearish (falling SMA)
4. Divergence Detection: - Automatically identifies bullish and bearish divergences - Bullish Divergence: Price makes lower low while CCI makes higher low - Bearish Divergence: Price makes higher high while CCI makes lower high - Visualized with distinct markers on the CCI line - Can be used to set up alerts for divergence confirmations
⚙️ Customization Options: - CCI calculation length and price source - Overbought/Oversold levels - SMA lengths for daily and weekly modes - Divergence lookback period - Signal colors and visualization settings
🔔 Alert Capabilities: - Set alerts for CCI crossovers of overbought/oversold levels - Create divergence detection alerts - Configure trend change notifications - Combine multiple conditions for complex alert strategies
💡 Trading Tips: - Combine divergence signals with trend direction for better accuracy - Wait for signal confirmation before entering trades - Use additional indicators or price action for exit decisions
This indicator helps traders identify potential trend reversals while keeping them aligned with the main market trend. Perfect for both trend following and counter-trend strategies when used appropriately.
ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יוכלו להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אבל השימוש החוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.