Awesome Oscilator
systemic:core-aoIndicatorsInputs
| Name | Type | Description |
|---|---|---|
| Short Window | Whole number | The number of bars in the short SMA, typically 5; it must be at least 1 and cannot be larger than the Long Window. |
| Long Window | Whole number | The number of bars in the long SMA, typically 34; it cannot be smaller than the Short Window. |
| Price High | Number series | The highest price of the asset on each bar. |
| Price Low | Number series | The lowest price of the asset on each bar. |
Outputs
| Name | Type | Description |
|---|---|---|
| AO | Number series | A momentum series that moves around zero: the short SMA of the median price minus the long SMA. |
Cost
0.208 + 0.00581·n credits for n bars, rounded up. The marks are each plan's limit of bars.
How to use the Awesome Oscillator (AO) to measure momentum, confirm trends, and spot reversals in equities and cryptocurrencies.
Overview
The Awesome Oscillator (AO), developed by Bill Williams, is a momentum indicator. It compares a short-term average of price with a long-term average. AO is designed to:
- Identify trend direction and strength
- Spot momentum shifts and possible reversals
- Confirm or filter trade signals in both traditional securities and cryptocurrencies
Why it matters:
- In equities, AO helps confirm the trend and detect early signs of exhaustion or reversal (Investopedia AO).
- In crypto, AO can filter out noise and highlight real momentum shifts in volatile markets (Binance Academy AO).
AO is useful for:
- Spotting momentum changes that are hard to see in price alone
- Filtering out false signals in choppy markets
- Complementing other momentum and trend indicators (see MACD, CCI, Stochastic Oscillator)
Mathematical Formulation
The AO is calculated in two main steps:
- Median Price:
- Awesome Oscillator:
Where, with the standard settings (Short Window = 5, Long Window = 34):
- is the 5-bar Simple Moving Average
- is the 34-bar Simple Moving Average
Missing Data
A bar when the market was closed (weekend, holiday), or any bar without a High or Low, is not
computed. It is a gap: the output is empty, never 0 or a carried-forward value. Both SMAs
(5 and 34 bars, or the windows you set) count only bars with data, so gaps are skipped
(Friday is followed directly by Monday). The first window_long - 1 bars with data are
warm-up and are also empty. The output always has the same length as the input.
Calculation Flow
flowchart TD
A[High, Low] --> B[Compute Median Price]
B --> C[5-bar SMA]
B --> D[34-bar SMA]
C --> E[Short SMA]
D --> F[Long SMA]
E --> G[Subtract: Short SMA - Long SMA]
F --> G
G --> H[AO Output]
H --> I[Plot AO and Price]
How to Use AO in Practice
- Zero Line Cross:
- AO crosses above zero: Bullish momentum, potential buy signal
- AO crosses below zero: Bearish momentum, potential sell signal
- Twin Peaks:
- Bullish: Two troughs below zero, second higher than the first, and AO rising
- Bearish: Two peaks above zero, second lower than the first, and AO falling
- Saucer:
- Bullish: Three consecutive bars, with the middle bar lower than its neighbors, all above zero
- Bearish: Three consecutive bars, with the middle bar higher than its neighbors, all below zero
- Divergence:
- Price makes new high, AO does not: Bearish divergence, possible reversal
- Price makes new low, AO does not: Bullish divergence, possible reversal
Signal Interpretation Flow
flowchart TD
S[Scan AO and Price] --> A{AO > 0?}
A -- Yes --> B{AO Rising?}
B -- Yes --> C[Consider Long]
B -- No --> D[Wait or Watch for Divergence]
A -- No --> E{AO < 0 and Falling?}
E -- Yes --> F[Consider Short]
E -- No --> G[Wait or Watch for Bullish Divergence]
Regime State Diagram
stateDiagram-v2
[*] --> Neutral
Neutral: AO near zero
Neutral --> Bullish: AO crosses above zero
Bullish --> StrongBull: AO rising above zero
Bullish --> WeakBull: AO above zero but falling
Neutral --> Bearish: AO crosses below zero
Bearish --> StrongBear: AO falling below zero
Bearish --> WeakBear: AO below zero but rising
StrongBull --> Neutral: AO falls to zero
StrongBear --> Neutral: AO rises to zero
Comparison to Similar Modules
- MACD (Moving Average Convergence Divergence):
- Both AO and MACD are momentum oscillators based on moving averages, but MACD uses exponential averages (EMAs) and adds a signal line (Investopedia MACD).
- AO is simpler: it uses only SMAs of the median price.
- CCI (Commodity Channel Index):
- CCI measures how far price is from a moving average and is used to find overbought/oversold conditions (StockCharts CCI).
- AO focuses more on momentum and trend confirmation.
- Stochastic Oscillator:
- Stochastic compares the closing price with the price range over a window, which helps spot reversals (Investopedia Stochastic).
- AO reacts less to short-term price swings and more to overall momentum.
Comparative Diagram
flowchart LR
AO[Awesome Oscillator]
MACD[MACD]
CCI[CCI]
Stoch[Stochastic Oscillator]
AO -- Momentum, Wave Structure --> MACD
AO -- Simpler, Median Price --> CCI
AO -- Less Noise, Trend Focus --> Stoch
Use in Securities and Cryptocurrencies
- Equities:
- Confirm trend direction: AO above zero supports bullish setups, below zero supports bearish setups (StockCharts AO).
- Spot exhaustion: Divergences and twin peaks can warn of trend exhaustion.
- Cryptocurrencies:
- Filter noise: AO helps identify real momentum in volatile markets.
- Combine with volume or volatility filters for more reliable signals (Binance Academy AO).
Example (Bitcoin)
Suppose Bitcoin rallies, but AO forms a bearish twin peaks pattern above zero. This may warn of weakening momentum and a possible correction.
Stylized Regimes and Trading Implications
flowchart TD
AO1[AO > 0 and Rising] --> Bull[Strong Bullish Momentum]
AO2[AO < 0 and Falling] --> Bear[Strong Bearish Momentum]
AO3[AO Crosses Zero] --> Shift[Momentum Shift]
AO4[AO Divergence with Price] --> Rev[Potential Reversal]
Heuristics:
- AO rising above zero: Confirm uptrend, consider long trades
- AO falling below zero: Confirm downtrend, consider short trades
- Divergence: Reduce risk, watch for reversal
Practical Implementation Notes
- Data hygiene: Use consistent high/low data, especially in crypto where prices differ between exchanges.
- Backtesting: Test AO signals together with price action and other indicators (e.g., RSI, MACD) for confirmation.
- Risk controls: AO works best as a filter, not as a signal on its own. Your own stop-loss and position-sizing rules still matter.
References and Further Reading
- Investopedia: Awesome Oscillator
- StockCharts: Awesome Oscillator
- Binance Academy: Awesome Oscillator
- TradingView: AO Indicator
- Investopedia: MACD
- StockCharts: CCI
- Investopedia: Stochastic Oscillator
Appendix: Quick Glossary
- AO: Awesome Oscillator, a momentum indicator
- Median Price: Average of the high and low of a bar
- SMA: Simple Moving Average
- Twin Peaks: Two consecutive peaks or troughs used for reversal signals
- Divergence: Disagreement between price and indicator direction
- MACD: Moving Average Convergence Divergence, a momentum oscillator
- CCI: Commodity Channel Index, an overbought/oversold indicator
- Stochastic Oscillator: A momentum indicator comparing close to range
Indicator Assessment
---
config:
xyChart:
width: 600
height: 400
themeVariables:
xyChart:
plotColorPalette: "#9b59b6, #e67e22"
---
xychart-beta horizontal
title "AO Indicator Assessment (Scale: 1-10)"
x-axis ["Popularity", "Reliability", "Complexity", "Versatility", "Recent Interest"]
y-axis "Score" 0 --> 10
bar [7, 6, 4, 7, 5]
bar [6, 5, 4, 6, 6]
Legend: First bar (purple) = Equities/Forex | Second bar (orange) = Cryptocurrency
Dimension Explanations
| Dimension | Equities/Forex | Crypto | Rationale |
|---|---|---|---|
| Popularity | 7 | 6 | Part of Bill Williams' indicator suite; widely available on charting platforms. Moderate adoption in crypto communities. |
| Reliability | 6 | 5 | Effective for momentum confirmation; twin peaks and divergence patterns are fairly reliable. In crypto, more false signals because of volatility. |
| Complexity | 4 | 4 | Simple concept (the difference of two SMAs), but reading the patterns (twin peaks, saucer) takes practice. |
| Versatility | 7 | 6 | Works on all periods. Less effective in low-volume crypto assets. |
| Recent Interest | 5 | 6 | Steady interest in traditional markets. Growing use in crypto as traders look for momentum confirmation tools. |