KeltnerChannel
KeltnerChannel is the Keltner Channel: an exponential moving average and two bands at a distance that is a multiple of the Average True Range (ATR). The channel shows the usual range of price fluctuations: a move beyond a band is wider than usual.
The indicator is drawn over the price chart.
How it is calculated
- The middle line is the exponential moving average (EMA) of the price set in Source over Period bars.
- ATR is the Average True Range over ATR period bars: the true range of a bar (the largest of High − Low, |High − previous Close| and |Low − previous Close|) smoothed with Wilder’s method. If ATR period is 0, Period is used.
- The bands: average ± Multiplier × ATR.
The channel appears once the larger of the two periods — Period or the ATR period — is available.
Parameters
| Parameter | Description | Default |
|---|---|---|
| Period | The number of bars for the middle line. At least 1. | 20 |
| Multiplier | How many ATRs from the average the bands lie. At least 0.1. | 2 |
| ATR period | The number of bars for ATR; 0 means the same as Period. | 0 |
| Source | The bar price for the average: Close — the close, Median — (High + Low) / 2, Typical — (High + Low + Close) / 3. | Close |
Plots
| Parameter | Description | Default |
|---|---|---|
| Bands | The upper and lower bands of the channel. | Blue, solid, width 1 |
| Middle line | The middle line. | Orange, solid, width 1 |
| Fill | The area between the bands. | Semi-transparent blue |
Style
The lines have the Plot (show the line), Label (show the last value on the right scale), Color, Width (1–5) and Style (Solid, Dashes, Dots) fields. The fill has the Fill (show the fill) and Color fields.
How to add an indicator to the chart is described in Adding an indicator; parameters are changed in the indicator manager.
Last updated on