OPEN-SOURCE SCRIPT

Trinity CCI Pro Plus

260
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.

Отказ от ответственности

Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.