indicator · own pane · open source

Accelerator Oscillator

Deepwick · @deepwickv1Updated 2 Oct 2026▲ 0 users
Running…
Loading chart…

About

Accelerator Oscillator (AC) is the Awesome Oscillator minus its own 5-bar SMA — the change in AO momentum. Histogram that fires before the AO turns.

  • Crosses of zero lead AO turns by 1-3 bars.
  • Two same-direction bars of AC confirm the AO momentum.
  • Pair with AO for a complete Bill Williams momentum stack.

Source code

//@version=5
indicator("Accelerator Oscillator", overlay=false)
fast = input.int(5, "AO Fast", minval=2, maxval=50)
slow = input.int(34, "AO Slow", minval=2, maxval=200)
smooth = input.int(5, "AC Smoothing", minval=2, maxval=50)
ao = ta.sma(hlc3, fast) - ta.sma(hlc3, slow)
ac = ao - ta.sma(ao, smooth)
hline(0, "Zero", color=color.gray, linestyle=hline.style_dotted)
p_AC = plot(ac, "AC", color=ac >= 0 ? color.green : color.red, style=plot.style_columns)
alertcondition(ta.crossover(ac, 0), "AC crosses zero up", "Accelerator Oscillator crossed above zero")
alertcondition(ta.crossunder(ac, 0), "AC crosses zero down", "Accelerator Oscillator crossed below zero")

Comments

No comments yet.

Sign in to comment.