Camovia Tray™

Moving Average of Oscillator

OsMA is MACD's histogram formalized as its own indicator: the gap between the MACD line and its signal — it isolates the acceleration/deceleration layer of momentum.

What it is

OsMA (Moving Average of Oscillator) = the MACD line − the signal line — the formal name of the histogram many traders know from MACD. It answers a finer question than MACD: is the gap between the two lines widening or shrinking? Widening = momentum accelerating; shrinking = decelerating (even if the MACD line still rises). In MT5, the histogram attached to the MACD indicator is OsMA — mounting it separately gives a cleaner scale for watching that layer alone.

Origin

OsMA became a named, separately-shipped indicator as platforms industrialized MACD — the "difference between MACD and its signal line" was already the core of Gerald Appel's original trading logic. MT5 lists it as a standalone tool (iOsMA) for traders who care only about the acceleration/deceleration layer.

Download Camovia Tray free — check quotes, manage positions, and hide in one click from your system tray.

Download Free

The formula

One line of math:

OsMA = MACD(12,26) − Signal(SMA9 of MACD)

Parameters are fully shared with MACD (12/26/9; MT5's signal line is SMA-based). The sign of OsMA = MACD line above/below signal; bar growth/shrink = the gap widening/narrowing. Numerically identical to MACD's built-in histogram — one thing, two presentations.

Worked example

A scenario showing why shrinking bars lead:

  1. In an uptrend the MACD line is above its signal and OsMA bars are positive and growing — momentum accelerating, trend healthy.
  2. Price still prints new highs but the bars start shrinking — the gap narrows: the pace slows, momentum decelerating.
  3. Bars flip negative (the MACD cross confirms). But note: several bars pass between "bars shrinking" and "the flip" — OsMA's shrink is the earlier of the two.

OsMA's value is being half a step early — a shrinking bar is a signal without waiting for the color flip. The cost: early also means noisier (a shrink can be mere consolidation), so confirm with trend structure.

How to read it

Reading the histogram around zero:

Range Common interpretation
Positive bars growing Bullish momentum accelerating — the trend's strongest phase
Positive bars shrinking Bullish momentum decelerating — trend or a resting consolidation; trim and watch
Bars flipping negative The MACD bearish cross confirmed — weakness has landed
Negative bars growing Bearish momentum accelerating
Negative bars shrinking Bearish momentum decelerating — early thread of a rebound

OsMA has no fixed overbought/oversold lines — its two readings are the growth direction of the bars and divergence against price. As a MACD derivative it inherits all MACD conventions (including MT5's SMA signal line).

Common signals & usage

Direction turn of the bars

A first shrink after continuous growth (either side of zero) — the earliest deceleration cue; trend-followers trim, contrarians wait for confirmation.

Zero-line cross

OsMA crossing 0 is the MACD bullish/bearish cross itself — a confirmation-grade signal.

Divergence

Price new highs while OsMA peaks decline — wave-by-wave momentum decay, the histogram version of MACD divergence (more visual).

Bar-count method

Elder's counting: after N consecutive same-direction bars, the first shrink is the action cue (e.g. three shrinking bars → trim).

Limitations & common mistakes

  • Redundant with the MACD histogram: MT5's MACD already draws it — mounting both is reading one dataset twice.
  • Shrinking is not reversal: shorter bars can be a mere consolidation breath — act on structure, not on the shrink alone.
  • Range noise: around zero, OsMA crosses constantly in chop — the same regime failure MACD inherits.
  • Inherited conventions: MT5's SMA signal line makes bar lengths differ from other platforms (see the MACD page).
  • Single-dimension tool: OsMA only describes the gap between two lines — no volatility, no direction; hand stops to ATR and direction to trend tools.

OsMA in MT5

OsMA is a standalone built-in MT5 indicator (histogram). The MQL5 function for programmatic use is iOsMA:

int iOsMA(string symbol, ENUM_TIMEFRAMES period, int fast_ema, int slow_ema, int signal, ENUM_APPLIED_PRICE applied_price);
MQL5 function iOsMA()
Default parameters fast_ema=12, slow_ema=26, signal=9 (shared with MACD)
Buffers 0=main buffer (OsMA value)
Relation to MACD OsMA = iMACD main − signal (numerically identical)
Display window Sub-window histogram

iOsMA shares all parameters and conventions with iMACD (SMA9 signal). Values convert interchangeably — the choice is readability: MACD for "line vs line", OsMA for the acceleration layer alone.

Behavior across timeframes

15-minute

Bars expand/contract constantly — take acceleration/deceleration reads only in the larger-trend direction

1-hour / 4-hour

The main swing-momentum monitor; divergence structures are clear

Daily

The classic habitat: bar-turn and price-divergence reads are most representative on dailies

Weekly

Weekly OsMA color flips are extremely rare — when they print, a multi-month momentum switch is underway

Indicator combinations

Common pairings for OsMA:

  • With MACD (the combo): the MACD line's position (above/below zero) sets the tone; OsMA's expansion/shrink paces entries and exits. MACD
  • With ATR: decelerating OsMA trims positions while ATR trails the stop — momentum and risk linked. ATR
  • With RSI: an OsMA divergence + an RSI divergence — two momentum layers decaying together is a strong warning. RSI

FAQ

Q Are OsMA and the MACD histogram the same thing?

Numerically identical: OsMA = MACD line − signal line, which is exactly MACD's built-in histogram. MT5 ships it separately for traders who watch only the acceleration layer on a cleaner scale.

Q Should I close my position when bars shrink?

Shrinking bars signal decelerating momentum, not reversal — in a trend it may be a mere consolidation. The sturdy play: trim or tighten the stop on the shrink, execute reversals only on the color flip (zero cross), confirmed by price structure.

Q Does OsMA have overbought/oversold levels?

No fixed thresholds — its scale varies with price and volatility per instrument, so absolute values do not compare. The correct reads are relative: bar growth direction, consecutive-bar counts, and divergence against price.

Q Why is MT5's OsMA a different height than TradingView's MACD histogram?

Signal-line conventions differ: MT5 smooths the MACD line with SMA(9), TradingView with EMA(9) — signal lines and therefore histograms differ. Align conventions before cross-platform comparison (details on the MACD page).

Q How do I add OsMA in MT5?

Menu: Insert → Indicators → Oscillators → OsMA, or drag it from the Navigator onto a sub-window. Parameters 12/26/9 match MACD — if you already run MACD (histogram included), OsMA is optional rather than necessary.

Turn MT5 / MT4 into a Tray Tool

Check quotes, manage positions, and hide in one click.

Download Camovia Tray

This page is educational content about a technical indicator. It is not investment advice. Indicator signals can and do fail — always combine them with your own risk management.