Skip to content
70% OFF Black Friday Sale Biggest Indicator Sale of the Year. 148 left Get Quantzee →
Back to Blog
Awesome OscillatorMACDIndicatorsTrading Education

Awesome Oscillator: The Median-Price MACD Explained

By Rajeev Gupta · · 13 min read
Awesome oscillator histogram with green and red bars crossing the zero line below a candlestick price chart, with a MACD line, signal line and histogram inset for comparison

The awesome oscillator is a 5-period simple average of the bar midpoint minus a 34-period simple average of the same midpoint, drawn as a histogram. Strip the name away and it's a MACD line with two parts swapped: simple averages instead of exponential ones, and (high + low) / 2 instead of the close. That's the whole difference. Everything else people say about the awesome oscillator, the saucer, twin peaks, the colour of the bars, sits on top of that construction.

Last updated: 21 November 2026. Every figure below is arithmetic on stated inputs. None of it is a backtest on market data, and Quantzee publishes no win rate for any awesome oscillator signal.

The awesome oscillator formula, written out

According to TradingView's support page for the indicator, the awesome oscillator (AO) is the difference between a 34-period and a 5-period simple moving average, both computed on the midpoint of each bar. The histogram bar is green when the value is higher than the previous bar's value and red when it isn't. Check how your platform treats an exactly equal value, because that edge case differs between charting packages.

median[t] = (high[t] + low[t]) / 2
AO[t] = SMA(median, 5)[t] - SMA(median, 34)[t]
colour[t] = green if AO[t] > AO[t-1] else red

Three things follow straight from that. The value sits in price units, so an AO reading of 12 means something different on a 40-dollar stock than on a 4,000-point index. It crosses zero exactly when the 5-bar average of the midpoint crosses the 34-bar average. And it needs 34 bars of history before the first value exists.

Awesome oscillator vs MACD, term by term

The standard MACD definition is the 12-period exponential average of the close minus the 26-period exponential average of the close. Per the reference entry on MACD, a 9-period exponential average of that difference becomes the signal line, and the histogram is the MACD line minus the signal line. Line the two indicators up and four terms differ.

TermAwesome oscillatorMACD line
Average typeSimple (equal weights)Exponential (recent bars weigh more)
Input price(High + Low) / 2Close
Periods5 and 3412 and 26
What is plottedThe difference itself, as barsThe difference as a line; the bars show MACD minus its signal line

That last row trips people up. The AO histogram is the fast-minus-slow spread. The MACD histogram is something one step further along, the spread minus its own 9-period average. So the closest structural match to the AO is the MACD line drawn as bars, not the MACD histogram. If you've ever compared the two and found the MACD histogram turns first, that's why: it's a derivative of the thing the AO is plotting directly.

How much each one lags

A simple average of N bars trails a straight-line trend by (N − 1) / 2 bars. An exponential average with the usual smoothing factor 2 / (N + 1) trails by the same (N − 1) / 2 in the steady state. Run the numbers:

  • SMA 5 trails by 2 bars. SMA 34 trails by 16.5 bars. The AO spread on a straight ramp is 14.5 bars of slope.
  • EMA 12 trails by 5.5 bars. EMA 26 trails by 12.5 bars. The MACD line on the same ramp is 7 bars of slope.

Put a ramp that rises 1.00 per bar under both and the AO settles at 14.5 while the MACD line settles at 7.0. The AO reads about twice as large on identical drift, purely because its slow average is so much slower. The fast side reacts quicker too: a 5-bar simple average responds to a turn after about 2 bars, against 5.5 for the 12-period exponential. Those two facts together are why the AO feels more responsive at turns and bigger in trends, and also why it can't be compared to MACD values on the same chart.

What the midpoint input changes

For a bar that opens, trades in a tight range and closes near the middle, the midpoint and the close are nearly the same number and the swap does nothing. The two inputs only separate on specific bar shapes. Here are three, with made-up round numbers so the arithmetic is easy to follow.

BarOpenHighLowCloseMidpointClose minus midpoint
A: long upper wick, weak close102112100101106−5
B: strong close at the high101110100110105+5
C: tight doji after a gap1081091071081080

Bar A is the interesting one. The market ran 12 points in a session and handed back almost all of it by the close. A close-based indicator records 101. The midpoint records 106, so the AO's inputs barely register the rejection. That gap, 5 points on a 12-point range, is about 42% of the bar. Bar B is the mirror: the close-based line gets a 110 and the midpoint-based one gets 105.

Gap opens work the same way. If a stock gaps up 4 points and trades sideways all day, the close-based series carries the full jump into the average immediately, and the midpoint series carries it through the bar's range. Over a 5-bar window the difference is real but small. Over a 34-bar window it's mostly washed out. So the midpoint choice matters mainly in the fast average, which means it matters at turns, not in trends.

It also changes what noise looks like. Sessions that close near one extreme push a close-based average around. A midpoint-based average ignores where the bar finished and only cares about where it traded. One is more sensitive to closing behaviour, such as the closing auction on a stock or the daily close on a forex pair, and the other is more sensitive to range. Neither is more correct. You pick the one that matches what you think carries information.

Zero-line crossings and colour changes are two different signals

Charts usually show one more trap. The AO has a zero line and a bar colour, and the two produce different signals with different counts on the same data. Take nine consecutive AO values:

bar: 1 2 3 4 5 6 7 8 9
AO: 3.0 2.2 1.6 1.9 2.4 1.1 -0.4 -1.2 -0.9
colour: - R R G G R R R G

On those nine bars there is one zero-line crossing (between bars 6 and 7), three colour changes (bars 4, 6 and 9) and one saucer-shaped pattern (bars 1 to 4). A write-up that says "the AO gave seven signals on this chart" has to say which of those it's counting. The tradingsim article on the indicator counts seven zero-line signals on one name; whether you'd trade the colour flips on the same stretch would give a very different number. Colour changes happen far more often than zero crosses because the colour reacts to every wobble in a bar-to-bar difference.

The practical rule is simple. Pick one event definition before you look at a chart, write it down, and count only that event.

The saucer as a rule you can code

Bill Williams described the saucer in words: the AO is above zero, shows two falling bars, then turns up. Every ranking article repeats it, and none gives a number to detect it. Here is one way to write it as a condition. This is Quantzee's formalisation of the verbal pattern, not a rule from Williams, and the thresholds are starting points to sweep, not recommendations.

# bullish saucer fires on bar t
AO[t-2] > 0 and AO[t-1] > 0 and AO[t] > 0
AO[t-3] > AO[t-2] > AO[t-1] # two red bars in a row
AO[t] > AO[t-1] # then one green bar
(AO[t] - AO[t-1]) >= k * ATR(34) # optional: ignore tiny turns

On the nine-bar example, bar 4 satisfies it: 3.0 > 2.2 > 1.6, then 1.9 > 1.6, and all of bars 2 to 4 are above zero. The last line is where discretion hides. Without a minimum size, a turn of 0.01 counts the same as a turn of 0.5. With k = 0.02, say, a bar that turns up by less than 2% of the 34-bar average true range is ignored. Different k values change how many saucers you get on a given chart, and that's something you'd want to measure rather than assume.

The bearish saucer is the same condition mirrored below zero.

Twin peaks, with a tolerance

Twin peaks is harder, because it needs a definition of a peak and a definition of "lower". The verbal version: two troughs below zero, the second shallower than the first, with the AO staying below zero between them, followed by a green bar. The bearish version is mirrored above zero.

# bullish twin peaks, evaluated on bar t
find pivots: trough at bar i if AO[i] < AO[i-2..i-1] and AO[i] < AO[i+1..i+2]
need two troughs p1 < p2 (bars), both with AO < 0
AO < 0 on every bar between p1 and p2 # no zero cross between them
AO[p2] >= AO[p1] + lift # second trough is shallower
lift = m * abs(AO[p1]) # m = 0.10 as a starting value
p2 - p1 >= 5 bars # peaks not adjacent
AO[t] > AO[t-1] and t > p2 # a green bar after p2

The tolerance is the part nobody writes down. If m is 0, a second trough that is shallower by a rounding error counts, and the pattern fires on almost any two dips. If m is 0.5, the second trough has to be half as deep as the first, and it fires rarely. Neither setting is the "right" one. The reader's job is to pick m, fix it, and see how the count changes.

The unbounded scale problem

RSI lives between 0 and 100, so an RSI of 70 means the same thing on a 5-dollar stock and a 5,000-dollar index. The AO has no bounds and sits in price units, so its readings move with price level and with volatility. A reading of 4 on a 20-dollar stock is a big move. A reading of 4 on a 4,000-point index is nothing.

That has a direct consequence for anything that compares AO levels, such as twin peaks (is the second trough really shallower?) or a "reading above 10" filter. Before comparing across symbols or across periods of very different volatility, divide by something. Two options that work:

  • AO / SMA(median, 34) × 100, which gives the AO as a percentage of the slow average and makes a 20-dollar stock and a 4,000-point index comparable.
  • AO / ATR(34), which expresses it in units of recent volatility and makes a quiet period and a wild one comparable.

These answer different questions. Percent-of-price tells you how far the fast average has pulled away from the slow one in relative terms. ATR-scaled tells you whether that pull is large for this symbol's recent range. If a strategy compares AO readings across anything, one of the two should be in the formula.

Divergence on an unbounded histogram

Divergence works cleanly on a bounded oscillator. Price makes a higher high, RSI makes a lower high, and the pair is comparing like with like on a fixed scale. The AO doesn't give you that. If volatility fell between two price peaks, the AO's second peak can be lower purely because the swings got smaller, with no loss of momentum in any useful sense.

That makes AO divergence a weaker read than RSI divergence, unless you normalise first. Even then it's a judgement call. The histogram also doesn't have a natural overbought or oversold level to anchor the second peak against. For a comparison of how another unbounded or semi-bounded oscillator behaves here, see why ±100 on the CCI is not a signal by itself and why the OBV level means nothing. The McClellan Oscillator is a close structural cousin, also a spread of two moving averages, just applied to breadth data instead of price; see the McClellan Oscillator breakdown.

A test setup that answers whether the AO adds anything

The most useful question isn't "does the AO work". It's "does it tell me anything the MACD line doesn't". Here's a methodology you can run on your own symbol and window.

  1. Pick one symbol, one timeframe and one date range, and keep them fixed. Split the range in two: build the rules on the first half, then run them once, unchanged, on the second half.
  2. Compute three series on the same bars: the AO (median, SMA 5/34), a MACD line with the same bar inputs but exponential averages (12/26 on close), and a hybrid that uses the median with exponential averages. The hybrid isolates which of the two swaps does the work.
  3. Define one event, such as a zero-line cross, and write it down. Count how often each series fires, and how many bars apart the signals land when both fire near the same time.
  4. Measure forward returns after each event at fixed horizons, for example 5, 10 and 20 bars, and compare the distributions rather than a single average. Include costs.
  5. Repeat on two or three other symbols with different volatility. A result that exists on only one symbol is a coincidence until shown otherwise.

If the three series produce near-identical event times, then the AO is a MACD line and you can use whichever one your platform plots. If the AO fires earlier but with no improvement in forward returns after costs, the faster response is noise. Those are findings worth having, and none of them can be claimed without running the numbers. This post makes no such claim.

According to the technical analysis entry at Investor.gov, the SEC's investor education site, technical analysis evaluates securities from price and volume patterns and doesn't try to value the underlying business. That framing matters here. Any indicator built from price is a transformation of the same price series. The question is whether a transformation helps you see something or only repaints the same information with a different lag.

How this should change how you use the indicator

If you're on a platform where the AO is a built-in and you like it, nothing here says stop. What it says is that the colour flips, the zero crosses and the saucer are three separate event definitions, and you should know which one you're relying on. Write the saucer and twin peaks as conditions, normalise before comparing readings, and keep the MACD line next to it as a reference series for a while. If you'd like to see how the exponential cousin behaves on the same bars, the MACD settings and lag breakdown works through the lag arithmetic in more detail.

Quantzee publishes analytical software and education, not trading advice. Nothing in this post is a recommendation to buy or sell anything, and paper-trade any rule you write from it before risking capital.

Frequently Asked Questions

What is the awesome oscillator formula?
AO = SMA(median price, 5) − SMA(median price, 34), where median price is (high + low) / 2. It's plotted as a histogram, with a bar green when it is higher than the previous bar and red otherwise.
Is the awesome oscillator the same as MACD?
Structurally close, not identical. The AO uses simple averages of the bar midpoint over 5 and 34 periods. The MACD line uses exponential averages of the close over 12 and 26. The MACD histogram is a further step: the MACD line minus its 9-period signal line.
What does the midpoint input change compared with the close?
It ignores where a bar finished and records where it traded. On a bar with a long wick and a weak close, the close-based series drops sharply while the midpoint-based one barely moves. On quiet bars the two inputs are almost the same.
Can the saucer and twin peaks be coded?
Yes, once you add numbers. The saucer needs a bar count, a sign requirement above zero and an optional minimum turn size. Twin peaks needs a pivot definition and a tolerance for what counts as a shallower second trough. The versions in this post are Quantzee's formalisation, with thresholds to sweep, not rules from the original author.
Can I compare awesome oscillator values across symbols?
Not directly, because the AO sits in price units. Divide by the 34-period average of the midpoint to get a percentage, or by the 34-period ATR to get units of volatility, before comparing readings across symbols or volatility regimes.

FAQ

Frequently Asked Questions

AO = SMA(median price, 5) − SMA(median price, 34), where median price is (high + low) / 2. It's plotted as a histogram, with a bar green when it is higher than the previous bar and red otherwise.

Put It Into Practice

Try Quantzee's AI-Powered Indicators

Non-repainting signals, real-time alerts, all markets.

Get Quantzee
Rajeev Gupta, Founder & CEO of Quantzee

Written By

Rajeev Gupta

Founder & CEO, Quantzee

Rajeev Gupta is a Commerce Graduate with a Masters in Business Administration (Finance), and has been trading the markets since 1997. He previously worked with Religare Securities Limited as Head – Private Client Group until 2006, after which he started his own broking firm. He went on to found and lead Quantzee, where his focus has stayed on quantitative trading strategies — volatility dynamics, intraday price behavior, and regime-aware signal design. Every indicator in the Quantzee suite is derived from the methodology he uses in his own live trading account.