OPEN-SOURCE SCRIPT
CCI Stoic Continuation - Crossing Signals

Description
The CCI Stoic Continuation is a refined take on the classic Commodity Channel Index, designed specifically for traders who prioritize clarity and trend persistence over chasing volatile swings. Instead of viewing the CCI as a simple overbought/oversold oscillator, this indicator treats it as a momentum thermometer.
By utilizing a multi-layered threshold system, the indicator helps traders distinguish between a nascent trend (Early Momentum) and a confirmed, high-velocity move (Strong Momentum).
How It Works
The script visualizes four distinct phases of price action based on the relationship between the CCI and key threshold levels ($10$ and $80$):
1 Early Bullish (Teal): CCI crosses above $+10$. This suggests momentum is beginning to shift upward.
2 Strong Bullish (Cyan): CCI crosses above $+80$. This indicates high-velocity trend continuation.
3 Early Bearish (Light Orange): CCI crosses below $-10$. The first sign of downside pressure.
4 Strong Bearish (Red): CCI crosses below $-80$. Indicates significant conviction in the downward move.
Key Features
• Heat Fills: The background of the indicator pane is shaded to provide an immediate psychological "feel" for the current market environment.
• Bar Coloring: Trend colors are applied directly to your price bars, allowing you to stay focused on the price action while monitoring momentum shifts.
• Transition Markers: Vertical dashed lines appear in the indicator pane whenever a momentum state changes, highlighting the exact moment a "Stoic" entry or exit might be considered.
• Precision Alerts: Built-in alert logic for both "Early" and "Strong" signals in both directions.
Usage Tips
• Trend Alignment (CRITICAL): Do not take every signal. Only execute entries aligned with the higher-timeframe trend or overall market bias. This indicator is designed for continuation, not reversals.
• The Stoic Entry: Use the "Early" signal to prepare, and look for "Strong" confirmation to enter once the trend is clearly established.
• The Zero Line: The yellow zero line acts as the "Neutral Zone." Price action staying consistently above or below this line validates the broader trend bias.
• Timeframes: While optimized for standard settings, it performs exceptionally well on the 15m, 1h, and 4h timeframes.
Technical Settings
• CCI Length: Default 20 (Adjustable for sensitivity).
• Early Level: 10 (Customizable for tighter or looser entries).
• Strong Level: 80 (The threshold for confirmed momentum).
Author: Konstantinos Trovas
Version: 6.0 (Pine Script)


The CCI Stoic Continuation is a refined take on the classic Commodity Channel Index, designed specifically for traders who prioritize clarity and trend persistence over chasing volatile swings. Instead of viewing the CCI as a simple overbought/oversold oscillator, this indicator treats it as a momentum thermometer.
By utilizing a multi-layered threshold system, the indicator helps traders distinguish between a nascent trend (Early Momentum) and a confirmed, high-velocity move (Strong Momentum).
How It Works
The script visualizes four distinct phases of price action based on the relationship between the CCI and key threshold levels ($10$ and $80$):
1 Early Bullish (Teal): CCI crosses above $+10$. This suggests momentum is beginning to shift upward.
2 Strong Bullish (Cyan): CCI crosses above $+80$. This indicates high-velocity trend continuation.
3 Early Bearish (Light Orange): CCI crosses below $-10$. The first sign of downside pressure.
4 Strong Bearish (Red): CCI crosses below $-80$. Indicates significant conviction in the downward move.
Key Features
• Heat Fills: The background of the indicator pane is shaded to provide an immediate psychological "feel" for the current market environment.
• Bar Coloring: Trend colors are applied directly to your price bars, allowing you to stay focused on the price action while monitoring momentum shifts.
• Transition Markers: Vertical dashed lines appear in the indicator pane whenever a momentum state changes, highlighting the exact moment a "Stoic" entry or exit might be considered.
• Precision Alerts: Built-in alert logic for both "Early" and "Strong" signals in both directions.
Usage Tips
• Trend Alignment (CRITICAL): Do not take every signal. Only execute entries aligned with the higher-timeframe trend or overall market bias. This indicator is designed for continuation, not reversals.
• The Stoic Entry: Use the "Early" signal to prepare, and look for "Strong" confirmation to enter once the trend is clearly established.
• The Zero Line: The yellow zero line acts as the "Neutral Zone." Price action staying consistently above or below this line validates the broader trend bias.
• Timeframes: While optimized for standard settings, it performs exceptionally well on the 15m, 1h, and 4h timeframes.
Technical Settings
• CCI Length: Default 20 (Adjustable for sensitivity).
• Early Level: 10 (Customizable for tighter or looser entries).
• Strong Level: 80 (The threshold for confirmed momentum).
Author: Konstantinos Trovas
Version: 6.0 (Pine Script)
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.