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)
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.