OPEN-SOURCE SCRIPT
Apex Wallet - Adaptive Commodity Channel Index (CCI) & HTF Trend

Overview The Apex Wallet Commodity Channel Index (CCI) is a professional-grade momentum oscillator designed to identify cyclical trends and overbought/oversold conditions with an integrated trend-filtering engine. This script enhances the classic CCI by adding multi-timeframe trend analysis and adaptive calculation modes.
Adaptive Trading Presets The indicator automatically recalibrates its internal periods based on your selected Trading Mode:
Scalping: Uses fast-response settings (CCI 14, Signal 6, Trend 50) for lower timeframes.
Day Trading: Standard balanced settings (CCI 20, Signal 9, Trend 100).
Swing: Long-term filters (CCI 34, Signal 14, Trend 200) to capture major market waves.
Key Features:
Higher Timeframe (HTF) Trend Bias: Optional background shading based on a customizable Higher Timeframe (e.g., 1H trend while trading on 5m) to ensure you always trade in the direction of the "Big Picture".
Market Trend Coloring: The CCI Signal line dynamically changes color (Green/Red/Gray) based on local market momentum relative to its moving average.
Visual Clarity: Features standard CCI level bands (+100, 0, -100) with professional aesthetics for easy reading.
How to Use:
Select your preferred Trading Mode in the settings.
Enable HTF Background to visualize the dominant trend from a higher timeframe.
Look for CCI crosses or signal line color changes while the background confirms the overall market bias.
Adaptive Trading Presets The indicator automatically recalibrates its internal periods based on your selected Trading Mode:
Scalping: Uses fast-response settings (CCI 14, Signal 6, Trend 50) for lower timeframes.
Day Trading: Standard balanced settings (CCI 20, Signal 9, Trend 100).
Swing: Long-term filters (CCI 34, Signal 14, Trend 200) to capture major market waves.
Key Features:
Higher Timeframe (HTF) Trend Bias: Optional background shading based on a customizable Higher Timeframe (e.g., 1H trend while trading on 5m) to ensure you always trade in the direction of the "Big Picture".
Market Trend Coloring: The CCI Signal line dynamically changes color (Green/Red/Gray) based on local market momentum relative to its moving average.
Visual Clarity: Features standard CCI level bands (+100, 0, -100) with professional aesthetics for easy reading.
How to Use:
Select your preferred Trading Mode in the settings.
Enable HTF Background to visualize the dominant trend from a higher timeframe.
Look for CCI crosses or signal line color changes while the background confirms the overall market bias.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.