Channels drawn around a moving average of typical price (High + Low + Close) / 3.
A moving average (10 or 20-period) of the typical price [(High + Low + Close)/3] is used to construct the midline (not displayed on chart). Then the average true range is calculated over a time period (same as midline, 10 or 20-period) and multiplied by a multiple (usually 1.5); the calculated number is then added to the midline to form the upper Keltner Channel and subtracted from the midline to form the lower Keltner Channel.
A close above the upper channel is considered bullish and a close below the lower channel is considered bearish.
x is the period and must be an integer.
w is the ATR Multiplier which must be a number.
z is the offset. An offset of 1 is for 1 bar ago.
t is the Average Type. Leave blank for Simple, X for Exponential, F for Front Weighted, and H for Hull.
The top exponential Keltner Channel 20, 1.50 for the current bar can be written as follows.
XAVG((H0 + L0 + C0) / 3 + 1.5 * ATR1.0, 20)
But you can leave off the offset parameters since it is for the current bar.
XAVG((H + L + C) / 3 + 1.5 * ATR, 20)
The bottom Keltner Channel just changes the
+ between the
/ 3 and
1.5 * into a
XAVG((H + L + C) / 3 - 1.5 * ATR, 20)
And the center line dispenses with adding or subtracting a multiple of the Average True Range.
XAVG(H + L + C, 20) / 3
Since the ATR Multiplier is both added and subtracted from this center line, the width needs to use double the ATR Multiplier used in the formulas for the top and bottom channels.
2 * 1.5 * XAVG(ATR, 20)
Which could then be simplified.
3 * XAVG(ATR,20)