Guides, manuals and platform references.
A CCI reading of 150 is not a broken gauge. The familiar +100 line is a reference level, not the top of the instrument. The Commodity Channel Index compares the current price with a recent average, then scales that distance by the window's mean absolute deviation.
That distinction matters in TradingView automation. “Buy above +100” and “sell after falling back below +100” turn the same indicator into different trading rules. For an AlgoWay workflow, settle that signal definition before preparing the execution message; the indicator-to-strategy guide helps separate the chart condition from the order workflow.
The conventional calculation uses typical price: (high + low + close) / 3. For a window of N bars, calculate the average of those prices. Then measure each price's absolute distance from that same current window average and average those distances. This is mean absolute deviation, not standard deviation. The formula is:
CCI = (current typical price - window average)
/ (0.015 × mean absolute deviation)
See Fidelity's indicator reference for the conventional formula. Do not silently substitute an average of deviations calculated against a different rolling mean on every bar; that is a different calculation.
Check the actual indicator's source setting before comparing platforms. TradingView's CCI documentation presents the typical-price formula but also describes a configurable Source input. Matching the name “CCI” alone does not establish matching inputs.
Take five hypothetical typical prices: 98, 99, 100, 101 and 107, with 107 the latest. Five bars keep the arithmetic readable; this is not a recommended trading setting.
The price is six units above its average, but CCI is not six units, six percent or 166.67 percent. It is a scaled ratio. Multiply every example price by ten and both the numerator and the deviation multiply by ten. CCI stays the same. Add 500 to every price and their distances from the average stay the same too.
Those two checks are useful when auditing a spreadsheet or an independently written indicator. A pure rescaling of all input prices should not change this calculation. If all prices in the window are identical, the denominator is zero; check how the implementation handles that case instead of treating division by zero as a valid signal.
The 0.015 factor sets the scale. Algebraically, CCI reaches +100 when the current price is 1.5 mean deviations above the window average, and -100 at 1.5 mean deviations below it. A reading of +200 corresponds to three mean deviations. None of these numbers is a probability of reversal.
TradingView notes that extreme readings can accompany trend continuation as well as reversal setups. Do not turn an “overbought” label into an unconditional sell order. Unlike the familiar bounded RSI scale, CCI has no fixed universal ceiling at +100 or floor at -100. For the separate RSI interpretation, see RSI thresholds and trading rules.
Consider these invented sequences of completed-bar CCI readings:
Choose one event, specify the source and lookback, and decide whether you evaluate completed bars. Then define what an existing position should do when another event arrives. A threshold supplies a condition; it does not supply position size, a protective exit or evidence of profitability. Test those decisions together, with costs, before allowing the condition to send live orders.