Original Keltner Channels

The Original Keltner Channels are the channels as Chester Keltner defined them: a simple moving average of the typical price, the average of the high, the low and the close, with the average high-low range of the periods on either side. Keltner built them as the ten-day moving average rule, which buys when the price rises above the upper line and sells when it falls below the lower one.

The formula for the Original Keltner Channels starts from the middle line, the simple moving average of the typical price over the last n periods:

\[\text{Middle Line} = \text{SMA}\left(\frac{\text{High} + \text{Low} + \text{Close}}{3}, n\right)\]

The upper and lower lines sit k average day ranges above and below it, the average day range being the simple moving average of the high-low range over the same n periods:

\[\text{Upper Line} = \text{Middle Line} + k \cdot \text{SMA}(\text{High} - \text{Low}, n)\] \[\text{Lower Line} = \text{Middle Line} - k \cdot \text{SMA}(\text{High} - \text{Low}, n)\]

Keltner used \(n = 10\) and \(k = 1\). With such a short average and narrow channel the price leaves it often, so the rule trades often and follows every trend from its start, at the cost of many false breakouts in a market without a trend. The average high-low range leaves out the gaps between periods, so the channel is narrower than one built on the Average True Range for an asset that gaps often.

Also known as: Keltner’s original channel, ten-day moving average rule.

In the Finance Toolkit this is get_keltner_channels with method="original", the same function as Keltner Channels.

Example · ^GDAXI · 2021 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_keltner_channels:

from financetoolkit import Toolkit

toolkit = Toolkit(
    tickers=["^GDAXI"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2021-01-01",
    end_date="2025-12-31",
)

toolkit.technicals.get_keltner_channels(method="original").xs("^GDAXI", level=1, axis="columns")

Which returns:

References

  • Paper Keltner, C.W. (1960). “How to Make Money in Commodities.” The Keltner Statistical Service.
  • Library Referenced against ta’s KeltnerChannel (Original Keltner Channels)
Share