# Moving Average Oscillator

One of our subscribers, George Topalides, asked me to set up an oscillator to reflect the variation between price and its moving average. After some discussion, we decided on a simple Moving Average Oscillator that reflects the variance between price and the moving average as a percentage of the MA. The indicator should be used in conjunction with the same moving average, plotted on the price chart, and is used to signal entries and exits in a trend-following system.

## Moving Average Oscillator Trading Signals

The Moving Average Oscillator may be used in trending and ranging markets.

### Trending Markets

**Go long on a bullish divergence where the second dip does not cross below -50%.****Go long when a downward trendline on the Moving Average Oscillator is broken and the Oscillator crosses to above zero.****Exit long positions if the Moving Average Oscillator turns down while above 50%.****Go short on a bearish divergence where the second peak does not cross above 50%.****Go short when a downward trendline on the Moving Average Oscillator is broken and the Oscillator crosses to below zero.****Exit short positions if the Moving Average Oscillator turns up while below -50%.**

##### Example

Australian miner Fortescue Metals Group [FMG] is displayed with 63-day Moving Average Oscillator and 63-day exponential moving average.

Mouse over chart captions to display trading signals.

- Exit [X] from previous long trade when Moving Average Oscillator turns down while above 50%; bearish divergence later strengthens the signal
- Bearish triple divergence gives a signal to go short [S] (while still above the 63-day exponential moving average)
- Exit and go long [XL] when price crosses above the 63-day exponential moving average after breaking the downward trendline
- Exit [X] long position when Moving Average Oscillator turns down while above 50%
- Go long [L] when price crosses above the 63-day exponential moving average after breaking the downward trendline
- Bearish divergence (below 50%) warns to exit long trade [XS]; go short when price crosses below the 63-day exponential moving average
- Exit [X] short position when the Moving Average Oscillator turns up while below -50%
- Go short [S] when the Moving Average Oscillator reverses below the rising trendline and reverses below -50%
- Exit [X] when the Moving Average Oscillator turns up while below -50%
- Bullish triple divergence gives a signal to go long [L] while still below the 63-day exponential moving average.

Note that price crossing the 63-day exponential moving average is equivalent to the Moving Average Oscillator crossing zero.

## Moving Average Oscillator Setup

Setup for the Moving Average Oscillator is simple. The default time period is 21 days, but I prefer 63 days for longer trends. We recommend using the default exponential moving average as this gives more reliable signals than a simple moving average.

See Indicator Panel for directions on how to set up an indicator.

## Moving Average Oscillator Formula

The formula is simply **(Close - Exponential MA) / Exponential MA**
expressed as a percentage.

## Moving Average Oscillator Evaluation

A simple but useful tool.