OPEN-SOURCE SCRIPT
Trinity CCI Pro Plus

What It Is
Trinity CCI Pro Plus is an innovative overlay indicator that reimagines the classic Commodity Channel Index (CCI) by plotting its levels directly on the price chart. No more separate oscillator panel—instead, you get dynamic price-based bands and lines for instant momentum insights.
What You See on the Chart
Orange line: The CCI zero line (20-period SMA of typical price, hlc3)—acts as the baseline.
Aqua line: Dynamic upper band at CCI = +100 (overbought threshold).
Purple line: Dynamic lower band at CCI = -100 (oversold threshold).
Optional thick purple line: The extra SMA of CCI (14-period smooth) scaled back to price—serves as a signal line for crossovers.
Optional outer zones: ±200 bands (aqua/purple extensions) for extreme momentum levels, often added as dotted or filled areas to spot blow-off tops/bottoms.
Key Differences from Regular CCI
Standard CCI lives in a lower pane with fixed horizontal lines at +100, 0, and -100, forcing you to split your focus. This version overlays everything on price: the bands curve with market volatility, the zero line becomes a moving average, and the extra SMA/signal line integrates seamlessly for price-action trading. Plus, it naturally supports outer ±200 zones without extra coding, making extremes visually pop.
How Traders Use It
Momentum breakouts: Buy when price closes above the +100 aqua band (or +200 for aggressive entries); sell below -100 purple (or -200).
Mean reversion: Fade touches on the bands—take profits if price rejects the +100/-100 levels, or watch for exhaustion at ±200.
Trend bias: Price above orange zero = bullish filter; below = bearish. Use the extra SMA for confirmation (e.g., price crossing above it signals upside).
Crossover signals: Price vs. the thick purple SMA line—bullish above, bearish below—pairs perfectly with band breaks.
Range trading: Treat ±100 bands as dynamic support/resistance; outer ±200 zones highlight potential breakout setups.
This setup shines in trending markets (e.g., stocks or forex on 1H/daily charts), turning CCI into a one-glance channel system. Start with the defaults, add the ±200 and extra SMA via simple code tweaks, and backtest for your style—it's versatile and reduces screen clutter dramatically.
More Info
The 20 period MA is the original and still the most common setting for CCI, and it is exactly what the creator of the CCI, Donald Lambert, published it in 1980 with these exact parameters:
Length: 20 periods
Constant: 0.015 (to make CCI fall between +100 and –100 about 70–80 % of the time)
Typical Price: hlc3 (or sometimes (high + low + close)/3)
Deviation measure: Mean Deviation (not standard deviation)
So the “Trinity CCI Pro Plus” you are using is 100 % faithful to Lambert’s original design when the length is set to 20.
Trinity CCI Pro Plus is an innovative overlay indicator that reimagines the classic Commodity Channel Index (CCI) by plotting its levels directly on the price chart. No more separate oscillator panel—instead, you get dynamic price-based bands and lines for instant momentum insights.
What You See on the Chart
Orange line: The CCI zero line (20-period SMA of typical price, hlc3)—acts as the baseline.
Aqua line: Dynamic upper band at CCI = +100 (overbought threshold).
Purple line: Dynamic lower band at CCI = -100 (oversold threshold).
Optional thick purple line: The extra SMA of CCI (14-period smooth) scaled back to price—serves as a signal line for crossovers.
Optional outer zones: ±200 bands (aqua/purple extensions) for extreme momentum levels, often added as dotted or filled areas to spot blow-off tops/bottoms.
Key Differences from Regular CCI
Standard CCI lives in a lower pane with fixed horizontal lines at +100, 0, and -100, forcing you to split your focus. This version overlays everything on price: the bands curve with market volatility, the zero line becomes a moving average, and the extra SMA/signal line integrates seamlessly for price-action trading. Plus, it naturally supports outer ±200 zones without extra coding, making extremes visually pop.
How Traders Use It
Momentum breakouts: Buy when price closes above the +100 aqua band (or +200 for aggressive entries); sell below -100 purple (or -200).
Mean reversion: Fade touches on the bands—take profits if price rejects the +100/-100 levels, or watch for exhaustion at ±200.
Trend bias: Price above orange zero = bullish filter; below = bearish. Use the extra SMA for confirmation (e.g., price crossing above it signals upside).
Crossover signals: Price vs. the thick purple SMA line—bullish above, bearish below—pairs perfectly with band breaks.
Range trading: Treat ±100 bands as dynamic support/resistance; outer ±200 zones highlight potential breakout setups.
This setup shines in trending markets (e.g., stocks or forex on 1H/daily charts), turning CCI into a one-glance channel system. Start with the defaults, add the ±200 and extra SMA via simple code tweaks, and backtest for your style—it's versatile and reduces screen clutter dramatically.
More Info
The 20 period MA is the original and still the most common setting for CCI, and it is exactly what the creator of the CCI, Donald Lambert, published it in 1980 with these exact parameters:
Length: 20 periods
Constant: 0.015 (to make CCI fall between +100 and –100 about 70–80 % of the time)
Typical Price: hlc3 (or sometimes (high + low + close)/3)
Deviation measure: Mean Deviation (not standard deviation)
So the “Trinity CCI Pro Plus” you are using is 100 % faithful to Lambert’s original design when the length is set to 20.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。