Holt-Winters Channel

Calculate the Holt-Winters Channel: bands a multiple of the smoothed standard deviation around the Holt-Winters Moving Average, which widen when the price strays from its trend.

The channel draws bands around the Holt-Winters Moving Average at a multiple of an exponentially smoothed standard deviation of the close from the average. It widens when the price strays from its trend and narrows when it follows it, so a close outside the channel marks a move the trend does not explain.

The formula is as follows:

\[\text{Middle Band} = \text{HWMA} \;(\text{the Holt-Winters Moving Average of} \;\text{get\_moving\_average})\] \[\operatorname{Var}(t) = (1 - \text{Deviation Smoothing}) \cdot \operatorname{Var}(t-1) + \text{Deviation Smoothing} \cdot (\operatorname{Close}(t-1) - \operatorname{HWMA}(t-1))^{2},\;\; \text{starting at 0}\] \[\text{Upper Band} = \operatorname{HWMA}(t) + \text{Multiplier} \cdot \sqrt{\operatorname{Var}(t-1)}\] \[\text{Lower Band} = \operatorname{HWMA}(t) - \text{Multiplier} \cdot \sqrt{\operatorname{Var}(t-1)}\]

Also known as: HWC, Holt-Winters channel, Holt-Winter channel.

Example · GOOGL · 2021 to 2025

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

from financetoolkit import Toolkit

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

toolkit.technicals.get_holt_winters_channel().xs("GOOGL", level=1, axis="columns")

Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:

How did Alphabet trade within its Holt-Winters channel in 2025?

Which returns:

Parameters

get_holt_winters_channel accepts the following parameters.

ParameterTypeDescriptionExample
periodstrThe time period to consider for historical data. Options are: “intraday” (intraday prices), “daily” (daily prices), “weekly” (weekly prices), “monthly” (monthly prices), “quarterly” (quarterly prices), “yearly” (yearly prices). Defaults to “daily”."weekly"
close_columnstrThe column name for closing prices in the historical data. Defaults to “Adj Close”."Close"
level_smoothingfloatThe smoothing factor of the level. Defaults to 0.2.0.2
velocity_smoothingfloatThe smoothing factor of the velocity. Defaults to 0.1.0.1
acceleration_smoothingfloatThe smoothing factor of the acceleration. Defaults to 0.1.0.1
deviation_smoothingfloatThe smoothing factor of the variance. Defaults to 0.1.0.1
multiplierfloatThe number of standard deviations of the bands. Defaults to 1.2.0
roundingint | NoneThe number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise).2
growthboolWhether to calculate the growth of the bands. Defaults to False.True
lagint | list[int]The lag to use for the growth calculation. Defaults to 1.4
standardizeboolWhether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False.True
show_columnsstr | list[str] | NoneThe columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column.None, which keeps every column

References

  • Paper Holt, C.C. (1957). “Forecasting Seasonals and Trends by Exponentially Weighted Moving Averages.” ONR Memorandum 52, Carnegie Institute of Technology.
  • Paper Winters, P.R. (1960). “Forecasting Sales by Exponentially Weighted Moving Averages.” Management Science, 6(3), 324-342.
  • Paper MQL5 Code Base: HWC (https://www.mql5.com/en/code/20857).
  • Library Referenced against pandas-ta-classic’s hwc
Share