Keltner Channel ATR Stretch Guide & Settings | SG Group
Skip to content
Japanese page

FreeOpen sourcePine Script v6

Combine an EMA basis and ATR-scaled inner, outer and extreme bands with slope, price location, channel width and distance from the basis. Read channel context without turning it into a signal.

Volatility / Channel
Real chart published on TradingView: Keltner Channel ATR Stretch
Real chart image from the published TradingView page. The symbol, timeframe, settings and prices shown are a captured example, not current data or a trading result.
PurposeUnify slope, position and width
Best forTraders reading channel context in one view
Primary outputEMA, ATR bands, dashboard and markers
Chart placementPrice-chart overlay
01 — Overview

Go beyond a simple inside-or-outside channel test

The EMA basis anchors inner, outer and extreme ATR bands. ATR-normalized basis slope drives Bias; band location drives Position; recent min–max width rank drives Volatility; distance from the basis drives Stretch.

What it visualizes

Basis and ATR bands with fills, optional candle tint, stretch/extreme/return-inside markers and a dashboard for Bias, Position, Volatility, Stretch, Slope and Width Rank.

How it works

EMA slope is normalized by ATR and compared with positive and negative thresholds. Close is classified against each band, while signed basis distance and recent width rank remain separate measures.

ATR-responsive width

The channel expands and contracts with ATR; it is not a fixed-distance envelope.

Tiered location state

Bias and band position classify Inside, Trend Zone, Pullback, Upper/Lower Stretch and Extreme.

Width regime

Width Rank is compared with thresholds for Quiet, Normal and Expanded. It is a recent min–max rank, not a statistical percentile.

02 — Install and start

Add it to TradingView

Add the public script to a chart and identify every drawing in the default configuration first. Change only one input at a time.

Keltner Channel ATR Stretch

Open the public Keltner Channel ATR Stretch page and add it to a TradingView chart. No SG Group account is required.

  1. Open the “Use on TradingView” link below.
  2. Select “Use on chart” on TradingView to add the script to your chart.
  3. Open the gear icon, then Settings → Inputs, and observe the default configuration first.
  4. Change one input at a time for the symbol and timeframe you are studying.
Observe the defaults firstChange one input at a timeVerify symbol, timeframe and feed

Prevent misreads when indicators overlap

Overlapping lines, bands, backgrounds or tables can be duplicate drawings of the same kind of information. Never treat visual overlap by itself as stronger evidence or signal agreement. Bollinger Bands, another Keltner channel, VWAP deviation bands and moving averages can place similar bases and envelopes at nearby prices. Isolate the inner, outer and extreme bands before interpreting them.

  • Enable Show Basis, Show inner bands, Show outer bands and Show extreme bands one family at a time.
  • Do not combine Show channel fills or Tint candles by state with another fill or candle-color study until each source is clear.
  • Hide Show dashboard or change Dashboard position when another table uses the same corner.
  • Do not count a line overlap with another channel as independent support or resistance confluence.
03 — How to read it

A practical reading order

Do not turn one value or color into a conclusion. Check the condition, persistence and relationship to price in order.

Read Bias as slope

Bullish or Bearish classifies EMA slope, not the direction of the next bar.

Check Position and Stretch

Read band location and basis distance together; an outside print does not guarantee a reversal.

Separate width from direction

Quiet or Expanded describes channel width and does not predict what comes next.

Status and display terms

Bias: Bullish / Bearish / Neutral

A sign classification of ATR-normalized EMA slope, not a price forecast.

Position: Trend Zone / Pullback / Inside

Current location relative to the basis and inner bands, interpreted with Bias.

Upper / Lower Stretch

A distance state between an outer band and the extreme band.

Extreme

Price is beyond the extreme band; no reversal probability is implied.

Quiet / Normal / Expanded

Channel-width classification based on Width Rank.

Width Rank

Current position between the recent minimum and maximum width; not a percentile.

04 — Settings reference

Settings reference

The labels below match the published script’s English Inputs panel. Defaults reflect the public source at the time of review and may change in a later TradingView update.

On small screens, each input is reformatted as a readable stacked card.

Core Keltner

4 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
SourcecloseSelects the price series used for the basis, stretch and state classification.
Basis EMA Length20; min: 1Sets the length of the EMA basis.
ATR Length20; min: 1Sets the ATR length used to determine channel width.
ATR Multiplier1.5; min: 0.1; step: 0.1Sets the outer-band distance from the basis in ATR units.

Stretch & Slope

4 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Inner Zone Ratio0.5; range: 0.0-1.0; step: 0.05Sets inner-band distance as a fraction of the outer half-width.
Extreme Zone Ratio1.5; min: 1.0; step: 0.1Sets extreme-band distance as a multiple of the outer half-width.
Slope Lookback5; min: 1Sets the number of bars used to measure basis slope.
Slope Threshold (ATR)0.25; min: 0.0; step: 0.05Sets the minimum ATR-normalized slope required for a directional bias.

Channel Width Regime

3 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Width Rank Lookback100; min: 2Sets the window used to rank channel width against its recent min-max range.
Quiet Threshold20; range: 0-100; step: 1Labels Width Rank as Quiet below this threshold.
Expanded Threshold80; range: 0-100; step: 1Labels Width Rank as Expanded above this threshold.

Markers & Alerts

3 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Confirmed bars onlytrueEvaluates markers and alerts on closed bars while the dashboard remains live.
Show stretch markerstrueShows markers for outer-band stretches and extreme stretches.
Show return-inside markerstrueShows markers when price returns inside after an outside move.

Visuals

6 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Show Inner ChanneltrueShows the inner channel bands.
Show Extreme ChannelfalseShows the wider extreme reference bands.
Show FilltrueShows the channel fills.
Color BarsfalseColors chart bars according to trend bias.
Show DashboardtrueShows the compact state dashboard.
Dashboard PositionTop Right; options: Top Right | Bottom Right | Top Left | Bottom LeftSelects the dashboard anchor position.

Style & Colors

15 inputs
Input labelDefault / optionsWhat it controls and when to adjust it
Basis#f5a623Sets the EMA basis color.
Outer Bands#2962ffSets the outer-band color.
Inner Bands#5b9cf6Sets the inner-band color.
Extreme Bands#9598a1Sets the extreme-band color.
Bullish Tint#26a69aSets the bullish state tint.
Bearish Tint#ef5350Sets the bearish state tint.
Neutral Tint#787b86Sets the neutral state tint.
Dashboard Text SizeNormal; options: Small | NormalSets dashboard text size.
Dashboard Background#131722Sets the dashboard background color.
Dashboard Header Background#2a2e39Sets the dashboard header background color.
Dashboard Label Text#b2b5beSets dashboard label-text color.
Dashboard Value Textcolor.whiteSets dashboard value-text color.
Dashboard Border#434651Sets the dashboard border color.
Dashboard Background Transparency15; range: 0-90Controls regular dashboard-background transparency.
Dashboard State Cell Transparency18; range: 0-85Controls the transparency of state-colored value cells.
05 — Alerts

Alerts report events, not decisions

Alerts are state, touch or transition events defined in the public source. They are not trade instructions.

  • Upper/lower stretch and upper/lower extreme stretch.
  • Upper/lower return inside.
  • Trend bias changed and Width regime changed.
06 — Limitations and responsible use

Not a buy/sell signal

This tool is for analysis and visualization. It is not investment advice, a trade recommendation, a forecast, or a promise of profit or accuracy. Results depend on inputs, symbol, timeframe, and data feed. You remain responsible for every trading decision.

Outside is not reversal

Stretch and Extreme are distance states. Price can remain outside or continue moving.

ATR moves the bands

Both price and ATR changes affect width and Stretch. Equal readings across symbols or timeframes need not mean equal conditions.

Width Rank definition

It is a recent min–max position, not a statistical percentile, and Quiet does not guarantee a later expansion.

Important

Keep Bias, Position and Volatility as separate axes. Do not convert a band touch by itself into an entry, target or stop.

07 — FAQ

Frequently asked questions

Clarify Bias, Position, Stretch, Width Rank and the meaning of an outside print.

Is Keltner Channel ATR Stretch free to use?

Yes. It is a free, open-source indicator published by SG Group on TradingView. Review TradingView’s terms and the conditions attached to the public script before reuse or redistribution.

Should I change the settings immediately?

Start with the published defaults and observe the drawings and state changes first. Then change one input at a time for the symbol, timeframe and data feed so you can identify what caused each visual change.

Can I display it with other indicators?

Yes, but similar lines, bands, backgrounds and tables can overlap and obscure their source. Isolate each indicator first and hide duplicate components. Visual overlap alone is not stronger evidence or signal agreement.

Does the display provide trade signals?

No. It is analysis and visualization context consistent with the public description. It does not provide entries, exits, targets, stops, price forecasts, or promises of profit, win rate or accuracy.

Is Extreme a contrarian entry signal?

No. Extreme is an ATR-band distance classification. Price can remain outside in a trend, and the label does not instruct a reversal entry, target or stop.

Source basis and update policy

This guide is grounded in SG Group’s live catalogue, the script’s published TradingView description, and the user-facing inputs in its open source. Labels and defaults can change after a script update.