What Is the Awesome Oscillator (AO)? Is Buying the Zero Cross Too Late?

“AO has turned positive and crossed the zero line. Is it still early enough to enter?”

First, look at what AO calculates: it is simply the distance between two averages, the 5-bar average minus the 34-bar average. Crossing zero means the short average crossing the long one, and the long one uses the last 34 bars, so it is slow by nature. By the time AO crosses zero, the market has usually already moved some way. This article first works it out once with a table, then looks at real gold prices, and finally uses statistics from 9 instruments to see how late it is.

This article is part of MASQuant’s “Trading Academy · Technical Indicators” series. All the indicators are sorted by category in Technical Indicators: The Complete Guide.

In one sentence

AO = how far apart the short and long averages are right now.

Above 0, the short average is above the long one; below 0, it is below.

AO is like two people running together: one keeps to the pace of the last 5 bars, the other to the pace of the last 34. AO is the distance between them. A growing gap means the short term is running faster than the long term; a shrinking gap means the short term has slowed. When they are side by side, AO is 0.

Work it out once: subtract two averages

AO does not use the close. It uses each candle’s median price, (high + low) ÷ 2. Here is how it looks over several days (the following are round numbers for illustration, not market data):

Situation 5-bar average 34-bar average AO Meaning
Short term below long term 97 100 −3 Below 0
Starting to recover 99 100 −1 Still below 0, but rising
Caught up 100 100 0 The moment of the zero cross
Getting stronger 105 101 +4 Above 0

Look at the third row: the short average has to climb back to the long one before AO reaches 0. Between the bottom and the zero cross, price has already moved some way, and that is AO’s lag. Also, AO’s unit is price: gold can reach the tens while EUR/USD is only around 0.01, so values cannot be compared across instruments.

The formula

Median price = (high + low) ÷ 2
AO = SMA(5) of the median price − SMA(34) of the median price

AO was introduced by Bill Williams. It is built into MT5 under the Bill Williams category of the indicator list, and 5 and 34 are fixed and cannot be changed. MT5 uses colour for direction: green if this bar is higher than the last, red if lower. Colour only depends on that comparison, not on which side of zero AO is on.

Read the chart: gold in 2023, following 1 to 4

The chart below shows gold (XAUUSD) daily from May 2023 to early January 2024, taken from MT5 historical prices. From 18 May to 2 October, closes moved between 1,828 and 1,979, ending 6.6% lower; from 3 October to 29 November, gold rose from 1,823 to 2,044, up 12.1%; it then chopped around at the highs.

Gold daily, May 2023 to January 2024: the AO bars below cross zero repeatedly over the summer, turn positive only in mid-October and peak at the end of October
Chart: gold (XAUUSD) daily, 18 May 2023 – 4 January 2024, MT5 historical prices. Price is at the top: hollow candles closed up, filled candles closed down; grey shading marks the range, light orange shading marks the trend. The bars below are AO: green means higher than the previous bar, red means lower, and the dashed line is 0. Dates are along the bottom, and the circled numbers match the notes below.
1

In the range, AO keeps crossing zero (11 September 2023). AO crossed the zero line 6 times here: 14 July, 8 August, 1 September, 11 September, 20 September and 27 September, with 4 of them in September alone. Without a trend the two averages stick together, the distance hovers around 0, and each cross means nothing.

2

On 18 October, AO settles above zero. The close was 1,947. Measured from 1,823 on 3 October, 11 bars had passed and gold was up 6.8%, 56% of the whole move to the 29 November high. Waiting for AO to turn positive means more than half of this rally is already over.

3

AO peaks (31 October 2023, 76.09). The close was 1,984. A high AO does not mean price has topped; it only means the short average is furthest from the long one at this moment.

4

Price peaks (29 November 2023, close of 2,044). After AO peaked, gold rose another 3.0%, yet on this day AO was only 39.49, about half its high. AO measures distance: when price slows and the long average catches up, the distance shrinks.

This is a real stretch of historical prices, used to show how AO behaves. It is not a general rule. Change the instrument, the timeframe or the period, and every number will change.

Statistics: after AO turns positive, is a rise really more likely?

One chart proves nothing. Using daily data from 9 instruments on MT5 (forex, gold, silver, indices, Bitcoin and Ethereum) since 2015, we found every day on which AO turned from negative to positive, 569 cases in all:

Item Result
Share with a higher close 20 bars after AO turned positive 54.8%
Share with a higher close 20 bars after any day (control group) 55.4%
Bars since the lowest close of the last 40 bars at the cross (median) 17 bars

After AO turned positive, the share of higher closes was about the same as any day. And at the moment it turned, the low was usually already 17 bars in the past (median). At least on the daily data of these 9 instruments, entering on an AO zero cross alone is no better than picking any day.

What you see, what it means

What you see What it usually means But be careful
AO above 0 The 5-bar average is above the 34-bar average Price has already moved some way (56% of the move at 2)
AO turns from negative to positive The short average crosses the long one Statistically about the same as any day (54.8% vs 55.4%)
Bars turn from red to green This bar is higher than the last; a short-term recovery Colour changes often and does not mean the trend has changed
AO falls from a high The distance between the averages is shrinking Price may still be rising (it rose 3.0% after 3)
AO crossing back and forth around 0 No trend No cross here is worth treating as a signal (6 times at 1)

How to use it: three examples

Example 1: only as a direction filter

The rule can be written as: “Only consider going long when AO is above 0.” Leave the entry to other conditions; AO only answers whether the short average is above the long one.

Example 2: watch for pullbacks in the bars

Bill Williams’ “saucer” signal: AO above 0, with a green bar after two consecutive red bars. It means a small pullback in a rise has ended. This comes earlier than waiting for a zero cross, but still needs a backtest, because it also appears as a trend ends.

Example 3: pair it with trend strength

False zero crosses mostly appear in ranges, so you can add a condition such as ADX above 25 (see What Is the ADX Indicator?).

All three examples have to accept the same thing: AO is the distance between two averages, not independent new information. What it tells you, the 5-day and 34-day averages already told you.

Common mistakes

1. Treating the zero cross as the start of the rally

At 2 on the chart, 56% of the move was already done. In the statistics, the median distance from the low at the cross is 17 bars. The zero cross is a confirmation, not a starting point.

2. Comparing AO values across instruments

AO’s unit is price. Gold at 76 and EUR/USD at 0.01 does not mean gold has more momentum.

3. Seeing a red bar and assuming price is falling

A red bar only means this bar is lower than the last. With AO above 0, price may still be rising, as between 3 and 4 on the chart.

FAQ

What is the AO indicator?

AO (Awesome Oscillator) is a momentum indicator by Bill Williams, calculated as the 5-bar minus the 34-bar average of the median price, shown as a histogram around a zero line.

What does AO crossing zero mean?

It means the 5-bar average has crossed the 34-bar average. It confirms the short term is stronger than the long term, but it usually comes after a move has already happened.

How does AO differ from MACD?

Both are the distance between two averages. AO uses the median price, SMA, and 5 and 34; MACD uses the close, EMA, and 12 and 26, plus a signal line.

Does MT5 have AO?

Yes. It is under the Bill Williams category of the indicator list, named Awesome Oscillator, and its parameters cannot be changed.

Conclusion

AO draws the distance between two averages as a histogram. It looks clear, but it does not know anything the averages do not. It cannot help with the stretch before the zero cross.

So the real question is: when your rules enter on an AO zero cross, are you buying the trend, or the second half of it? One stretch of historical prices cannot answer that; you have to backtest the rule over many stretches of the market.

Don’t have rules of your own yet, and don’t want to piece them together one indicator at a time? With MASQuant’s Strategy Genie, you just choose an investment style first; the AI analyses market conditions, selects instruments and gives you three candidate strategies at once. Each one has already been backtested on historical data, with its returns and maximum drawdown laid out in the open, and then you decide whether to deploy it to MT5.

If you already have an idea of your own, write the condition as one sentence, for example “only go long when AO is above 0 and the close is above the 34-day average”, give it to the AI Strategy Assistant, and press go to start the backtest. The backtest environment includes real market frictions such as spreads, slippage, changes in market liquidity and execution delays (see the AI Strategy Assistant guide for how to use it). Then remove the AO condition and run it again, and you will see how much it helped. A backtest tells you “how this rule performed in past market conditions”, not a guarantee about the future.

An idea only becomes a strategy once it’s been tested.

Not sure which strategy to use?

New here? Start with this 10-minute beginner’s guide. It walks you through picking your investment style, letting MASQuant’s Strategy Genie use AI to generate and backtest candidate strategies, and running one on an MT5 demo account, step by step.

Read the 10-Minute Beginner’s Guide →

Ready already? Sign in with Google to start for free. No credit card needed for your 15-day free trial.

All strategies and backtests are for reference only and do not constitute investment advice.

The price chart and statistics in this article are taken from historical prices on the MT5 platform (daily; quotes and daily candle cut-off times differ slightly between platforms, so values may not match exactly), and the indicators are calculated by a program using the standard formulas; the round numbers in the example are not market data. The statistics do not include spreads, commissions or slippage. Historical prices are used only to show how the indicator behaves and do not represent future price movements.

Risk disclosure: CFDs are high-risk financial products and can lead to rapid loss of capital. Past performance does not guarantee future results. All strategies and backtests are for reference only and do not constitute investment advice. Please read our Risk Disclosure carefully before trading.