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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.