Indicator · Pine Script v5 · Own pane

Commodity Channel Index

by gocaman

This indicator calculates the Commodity Channel Index from a user-selected source and length and plots it in a separate pane.

View on GitHub

GitHub stars3on the repository
Pine versionv5runs as is
Lines of code240
Settings40inputs
LicenceNone stated
Last update2 days ago28 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

Dashed lines mark plus 100 and minus 100, a middle line sits at zero, and the area between the outer bands is filled. A smoothing line can apply SMA, EMA, RMA, WMA, or VWMA, but it is hidden by default. Group, timeframe, and table-position inputs support a multi-symbol Borsa Istanbul scan. The scan flags a crossover of the previous CCI value above minus 100. It is not a strategy and has no exit or stop rules.

Details

Published by

gocaman on GitHub

Draws

Separate pane below the chart

Markets

Stocks

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Grup seçstring1grupSec
PERİYOTtimeframeper
Konum Ayarıint20loc
lengthint20length
Sourcesourcehlc3src
MethodstringSMAtypeMA
Lengthint5smoothingLength
1symbolsb1
2symbolBIST:XAKURsb2
3symbolBIST:XBANAsb3
4symbolBIST:XBANKsb4
5symbolBIST:XBLSMsb5
Show all 40 settings
SettingTypeDefaultVariable
6symbolBIST:XELKTsb6
7symbolBIST:XFINKsb7
8symbolBIST:XGIDAsb8
9symbolBIST:XGMYOsb9
10symbolBIST:XHOLDsb10
11symbolBIST:XILTMsb11
12symbolBIST:XINSAsb12
13symbolBIST:XKAGTsb13
14symbolBIST:XKMYAsb14
15symbolBIST:XMADNsb15
16symbolBIST:XMANAsb16
17symbolBIST:XMESYsb17
18symbolBIST:XSGRTsb18
19symbolBIST:XSPORsb19
20symbolBIST:XTASTsb20
21symbolBIST:XTCRTsb21
22symbolBIST:XTEKSsb22
23symbolBIST:XTRZMsb23
24symbolBIST:XTUMYsb24
25symbolBIST:XU030sb25
26symbolBIST:XU100sb26
27symbolBIST:XU500sb27
28symbolBIST:XULASsb28
29symbolBIST:XUSINsb29
30symbolBIST:XUTEKsb30
31symbolBIST:XUTUMsb31
32symbolsb32
33symbolsb33
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

This indicator scans a pasted list of symbols for RSI directional momentum and shows matching long and short signals in a table in a separate pane. The user chooses continuous break, continuous retracement, flip break, flip retracement, divergence, or hidden d

Indicator v6 Oscillators & momentumDivergence
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup - RSI Directional Momentum Scanner
261 stars

This indicator plots the RSI oscillator on the main chart and displays its value distribution in a table positioned at the top right. The script calculates the relative strength index using the input source and length, then plots horizontal lines at 0, 50, and

Indicator v4 Oscillators & momentumScreeners & dashboards
Updated 4 years ago · None stated GitHub repository of Tables-003 Oscillator Distribution

Market Speedometer

by TradersPost
228 stars

Market Speedometer plots a 0-100 market speed reading in a separate pane. It measures movement by bar-to-bar change, true range, or a short average of recent bars, then ranks that movement against ATR and a percentile lookback. An EMA smooths the reading, and

Indicator v6 Volatility & bandsOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Market Speedometer

KamaFama

by Mastaaa1987
141 stars

KamaFama is an indicator that translates a Freqtrade trading strategy into Pine Script for visualization. It combines Kaufman Adaptive Moving Average (KAMA), MAMA/FAMA calculations derived via Hilbert Transform, Williams %R, and correlation trend filters to ev

Indicator v6 Moving averagesOscillators & momentum
Updated 6 weeks ago · MIT GitHub repository of KamaFama
114 stars

Calculates normalized reversal metrics across up to ten Forex currency pairs using user-selected moving average methods, including HarmonicMA, EMA, SMA, or WMA. The indicator identifies overbought, oversold, and mean-crossing conditions using a configurable th

Indicator v4 Screeners & dashboardsMean reversion
Updated 1 year ago · None stated GitHub repository of Multi-Pair Trend Reversal Widget

More Oscillators & momentum scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers