Accelerator Oscillator

The Accelerator Oscillator (AC), or Accelerator/Decelerator Oscillator, measures how the momentum of the Awesome Oscillator changes, its acceleration. Bill Williams built it on the premise that momentum changes direction before the price does, and acceleration before momentum: the AC turns before the AO, which turns before the price, so it is the earliest warning of the three.

The formula for the Accelerator Oscillator starts from the median price of each period:

\[\text{Median Price} = \frac{\text{High} + \text{Low}}{2}\]

It builds the Awesome Oscillator from it, the simple moving average of the median price over the last m periods minus that over the last n periods, with m shorter than n:

\[\text{AO} = \text{SMA}(\text{Median Price}, m) - \text{SMA}(\text{Median Price}, n)\]

The AC is the Awesome Oscillator minus its own simple moving average over the last s periods:

\[\text{AC} = \text{AO} - \text{SMA}(\text{AO}, s)\]

Williams uses \(m = 5\), \(n = 34\) and \(s = 5\). A positive AC means momentum accelerates upward, a negative one that it accelerates downward. Williams reads the AC by the colour of its bars: two rising bars in a row above zero (three below zero) are a buy signal, two falling bars below zero (three above zero) a sell signal. Because it reacts to changes in momentum, it gives many signals in a choppy market.

The AO is the difference between a fast and a slow average of the median price.

In the Finance Toolkit this is get_awesome_oscillator with method="accelerator", the same function as Awesome Oscillator (AO).

Example · SOLUSD · 2021 to 2025

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

from financetoolkit import Toolkit

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

toolkit.technicals.get_awesome_oscillator(method="accelerator")

Which returns:

References

  • Paper Awesome Oscillator, Accelerator/Decelerator Oscillator: Williams, B. (1995). “Trading Chaos: Applying Expert Techniques to Maximize Your Profits.” Wiley.
  • Paper Awesome Oscillator, Accelerator/Decelerator Oscillator: Williams, B. (1998). “New Trading Dimensions: How to Profit from Chaos in Stocks, Bonds, and Commodities.” Wiley.
Share