Awesome Oscillator Indicator: Momentum Changes on TradingView
The Awesome Oscillator (AO) subtracts a 34-bar simple average of midpoint prices from a 5-bar average. It describes the difference between two historical price averages. Its sign and its bar color answer different questions, and neither guarantees a future price move.
Formula, Sign and Color
The midpoint is (high + low) / 2. AO is SMA(midpoint, 5) minus SMA(midpoint, 34). A positive reading means the shorter average is above the longer one; a negative reading means it is below.
Histogram color usually describes the change from the previous AO value. A green bar can still be below zero, while a red bar can remain above zero. For example, a hypothetical move from −3 to −2 is rising AO below zero; a move from +3 to +2 is falling AO above zero. Neither observation proves the next candle's direction.
TradingView's AO guide documents the formula, color convention and traditional pattern definitions.
What Pineify's Preset Exposes
The current AO preset uses fixed 5/34 lengths and HL2 source. It has no period or source input. It exposes AO, Long Signal and Short Signal outputs plus rising/falling color settings.
The preset's Long Signal is a positive crossing of the change in AO; Short Signal is a negative crossing of that change. These represent a turn toward rising or falling AO. They are not the same as AO crossing its own zero line, and the labels do not establish a complete trading strategy.
To inspect it:
- Add Awesome Oscillator in Pineify's Visual Pine Editor.
- Set the available colors and generate the script.
- Compile and add it in TradingView, then compare the histogram and signal outputs on completed bars.
- If you require different periods or source data, revise the calculation separately and verify the resulting script. Do not expect the current preset to expose those controls.
Distinguish the Research Signals
Zero-line crossing: AO moves between positive and negative values, meaning the two averages change their ordering. This is different from a histogram color change.
Divergence: matched price swings move in one direction while matched oscillator swings move in the other. Specify how swings are selected and when they are confirmed. A pivot that requires later bars cannot generate a historically earlier tradable signal.
Twin peaks: the traditional bearish setup uses two peaks above zero, with the second lower, the intervening trough above zero and a falling bar after the second peak. The bullish version uses two troughs below zero, the second higher, the intervening section below zero and a rising confirmation bar. A visual pattern still needs a precise programmable definition and can fail.
None of these signals identifies the motives of traders or guarantees that price will reverse. Combining AO with another price-derived indicator adds a filter to evaluate, not independent proof of an edge.
Build a Reproducible Test
Choose one signal definition first. For example, a research experiment could enter after AO crosses above zero and exit after a cross below zero. Define order timing, quantity, costs and protective exits separately. If adding a trend filter, compare the filtered version with the original under identical assumptions.
A turn from falling to rising AO is another experiment. Do not accidentally test that rule while describing a zero-cross strategy. Record the exact output used in the generated strategy.
Use net results, drawdown, average win/loss and trade count together. No fixed 40% win rate, 1.5 profit factor or 20% drawdown makes every momentum strategy acceptable. Risk tolerance, dependence between trades and cost assumptions affect interpretation.
Reserve data for evaluation and keep a record of all parameter trials. A selected backtest cannot support claims that default settings win 95% of comparisons without the underlying methods and results. No such benchmark or personal trading record is established here.
AO Compared with MACD
Conventional AO uses fixed-length SMAs of HL2. Conventional MACD uses a fast/slow EMA difference, usually of close, together with a signal average and histogram. Their weighting and outputs differ; the MACD guide explains that structure. Neither construction is universally earlier, smoother or more profitable.
Both can change during an unfinished bar. Check the alert frequency and forward behavior, especially when using higher-timeframe inputs or nonstandard chart prices.




