تخطَّ إلى المحتوى الرئيسي

Oscillator of a Moving Average (OsMA)

Intermediate

مذبذب المتوسط المتحرك

Also known as: OsMA, Moving Average of Oscillator, MACD Histogram

Technical Analysis
Last updated

Definition reviewed before publishing

Our content team writes and reviews every definition before it is published, and revisits it when the way a term is used in the markets changes. The date shows the latest change to this term.

Last updated on 25 November 2026

The oscillator of a moving average is a technical indicator that measures the difference between the MACD line and its signal line, usually displayed as bars above and below a zero line. It is used to gauge whether momentum is accelerating or slowing, and in essence it is the MACD histogram.

Quick summary

• Measures the gap between the MACD line and its signal line. • Displayed as bars around a zero line. • Helps track whether momentum is speeding up or slowing down.

How it works

The calculation starts with the MACD line, the difference between a short exponential moving average, usually 12 periods, and a longer one, usually 26 periods. The signal line is then calculated as a moving average of the MACD, usually over 9 periods, and subtracted from the MACD line to produce the indicator. When the bars are above zero, the MACD is above its signal line and upward momentum dominates; when they are below zero, downward momentum dominates. Traders focus on changes in bar height more than on position: gradually shrinking bars mean momentum is fading even if the trend is still intact, and a cross of the zero line corresponds to a MACD and signal line crossover. The indicator is also used to spot divergence, when price makes a new high but the indicator's peak is lower. It is available on MetaTrader and other platforms, and its periods can be adjusted.

Example

On a hypothetical daily chart, the MACD is 1.20 and the signal line is 0.90, so the indicator reads 0.30 (1.20 - 0.90). The next day, the MACD is 1.25 and the signal line 1.05, so the reading falls to 0.20 (1.25 - 1.05). Although the indicator remains above zero, the shorter bar, down from 0.30 to 0.20, shows that upward momentum is slowing.

Where you will see it

In the oscillator menu of MetaTrader 4 and 5, in brokers' charting tools, in momentum-based forex and stock analysis, and in automated trading systems.

Why it matters

OsMA gives a quicker read on changes in momentum than the two MACD lines, because shrinking bars usually come before the actual crossover. Traders use it to confirm signals from other tools or to spot a weakening trend, keeping in mind that it is built on moving averages and therefore lags price by nature.

How it is calculated

MACD = 12-period EMA - 26-period EMA. Signal line = 9-period moving average of the MACD. OsMA = MACD - signal line.

How it differs from similar terms

• MACD: made up of two lines, the MACD and its signal line, while OsMA shows only the difference between them. • Signal line: a moving average of the MACD and one of the inputs to OsMA, not a substitute for it. • Stochastic oscillator: compares the close with the recent price range and moves between 0 and 100, while OsMA has no fixed bounds.

Common mistakes

Treating every zero line cross as a standalone signal. OsMA repeats MACD information in a different form and gives many false signals in sideways markets, so it is read together with the broader trend and other tools.

Related terms