OPEN-SOURCE SCRIPT
Williams Accelerator Oscillator — AC

What it is
The Accelerator Oscillator (AC) measures the acceleration/deceleration of momentum. It’s derived from the Awesome Oscillator (AO) and shows whether momentum is speeding up or slowing down. In this implementation, columns are green when AC rises vs. the previous bar and red when it falls.
How it’s calculated
How to read it (typical interpretation)
Inputs
Plots
Alerts
Usage tips
Limitations
Credits
Concept by Bill Williams. This script is an independent implementation for educational and research purposes.
Disclaimer
No financial advice. Markets involve risk; test thoroughly before live use.
The Accelerator Oscillator (AC) measures the acceleration/deceleration of momentum. It’s derived from the Awesome Oscillator (AO) and shows whether momentum is speeding up or slowing down. In this implementation, columns are green when AC rises vs. the previous bar and red when it falls.
How it’s calculated
- Price source: Median Price (HL2) by default; Close can be used instead.
- AO = SMA(HL2, fastLen) − SMA(HL2, slowLen) (defaults: 5 & 34).
- AC = AO − SMA(AO, signalLen) (default: 5).
- Coloring: Green if AC > AC[1], else Red.
- Zero line (optional) helps contextualize acceleration around neutral.
How to read it (typical interpretation)
- Above 0: Upside acceleration (bullish pressure increasing).
- Below 0: Downside acceleration (bearish pressure increasing).
- Color sequences: Consecutive green columns suggest increasing upside acceleration; consecutive red columns suggest increasing downside acceleration.
- Note: AC reflects change in momentum, not trend direction by itself. Many traders confirm with trend filters or price structure before acting.
Inputs
- AO Fast SMA (default 5)
- AO Slow SMA (default 34)
- AC Signal SMA (default 5) — smoothing for the AO used in AC calc
- Use Median Price (HL2) for AO (on/off)
- Show zero line (on/off)
- Show AO (for reference) (on/off)
- Show AC signal (SMA of AO) (on/off)
Plots
- AC Histogram — column chart colored by acceleration (green/red).
- Zero — optional baseline at 0.
- AO — optional reference line.
- AO Signal (SMA) — optional smoothing line of AO.
Alerts
- AC crosses above 0 — acceleration flips positive.
- AC crosses below 0 — acceleration flips negative.
- AC green above zero — AC rising and > 0.
- AC red below zero — AC falling and < 0.
Usage tips
- On lower timeframes, consider a slightly larger signalLen to reduce noise.
- Confirm with price action, trend filters, or volatility context.
- Values update intrabar; for stricter signals, confirm on bar close.
Limitations
- AC is built from moving averages and is therefore lagging relative to raw price.
- It is not normalized; behavior can vary by instrument and timeframe.
- Do not use in isolation for entries/exits without risk management.
Credits
Concept by Bill Williams. This script is an independent implementation for educational and research purposes.
Disclaimer
No financial advice. Markets involve risk; test thoroughly before live use.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
✅My Telegram
t.me/trading_mura
t.me/trading_mura
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
✅My Telegram
t.me/trading_mura
t.me/trading_mura
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。