Acceleration Bands

Calculate Headley’s Acceleration Bands: bands around a moving average that widen with the range of the candles, whose breakouts show an accelerating trend.

Acceleration Bands place an envelope around a simple average of the close whose width follows the High - Low range of each period relative to its price. Headley used a close outside the bands as the start of an accelerating move (a breakout) and a close back inside them as the end of it.

The formula is as follows:

\[\text{Range Ratio} = \frac{\text{multiplier} \cdot (\text{High} - \text{Low})}{\text{High} + \text{Low}}\] \[\text{Upper Band} = \operatorname{SMA}(\text{High} \cdot (1 + \text{Range Ratio}),\; \text{window})\] \[\text{Middle Band} = \operatorname{SMA}(\text{Close},\; \text{window})\] \[\text{Lower Band} = \operatorname{SMA}(\text{Low} \cdot (1 - \text{Range Ratio}),\; \text{window})\]

Also known as: ACCBANDS, Price Headley’s Acceleration Bands.

Example · TSLA · 2025

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

from financetoolkit import Toolkit

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

toolkit.technicals.get_acceleration_bands().xs("TSLA", level=1, axis="columns")

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

Where did Tesla trade within its Acceleration Bands in 2025?

Which returns:

Parameters

get_acceleration_bands 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”, in which case the open, high and low prices are adjusted for dividends in the same way."Close"
windowintThe number of periods of the simple averages. Defaults to 20, as defined by Headley.20
multiplierfloatThe multiplier of the relative range. Defaults to 4.0, as defined by Headley.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 Headley, P. (2002). “Big Trends in Trading: Strategies to Master Major Market Moves.” John Wiley & Sons.
  • Library Referenced against TA-Lib’s ACCBANDS
  • Library Referenced against pandas-ta-classic’s accbands
Share