All indicators

Oscillator Moving Average (OsMA)

Jul 15, 2016

Static chart image
SignalsOscillatorsMoving Averages

The Oscillator Moving Average (OsMA) indicator provides a visual representation of the difference between the MACD line and its signal line, helping traders identify momentum shifts and potential trend reversals.

Usage

The OsMA is primarily used to gauge the momentum of price action by measuring the distance between the MACD oscillator and its moving average (signal line). When the OsMA histogram crosses above the zero line, it indicates that the MACD has crossed above its signal line, suggesting bullish momentum. Conversely, a cross below the zero line indicates bearish momentum.

This specific version employs a four-color scheme to provide deeper insight into momentum changes:

  • Bright Green: OsMA is positive and increasing (strengthening bullish momentum).
  • Dark Green: OsMA is positive but decreasing (weakening bullish momentum).
  • Bright Red: OsMA is negative and decreasing (strengthening bearish momentum).
  • Dark Red: OsMA is negative but increasing (weakening bearish momentum).

Traders can toggle the visibility of the MACD line, the Signal line, and the Histogram independently to clean up the chart or focus on specific crossover signals.

Details

The OsMA is calculated as the difference between the MACD value and the Signal line value ($OsMA = MACD - Signal$). Because the Signal line is a moving average of the MACD, the OsMA effectively acts as an oscillator of an oscillator.

The logic for the four-color histogram follows the concept popularized by the MACD 4C, where the color transition happens not just on zero-line crosses, but also when the slope of the histogram changes. This allows traders to spot potential exhaustion in a trend before an actual crossover occurs. This implementation is based on the technical framework established by vkno422.

Settings

  • Fast MA Period: Sets the lookback period for the shorter-term moving average used to calculate the MACD.
  • Slow MA Period: Sets the lookback period for the longer-term moving average used to calculate the MACD.
  • MACD MA Period: Determines the smoothing length for the signal line (EMA of the MACD).
  • Show Signal Line: Toggles the visibility of the blue signal line.
  • Show MACD: Toggles the visibility of the MACD line, which uses a dynamic coloring system based on its direction and position relative to zero.
  • Show OsMA Histogram: Toggles the visibility of the OsMA bars.

FAQ

How is the OsMA different from the standard MACD? While the standard MACD shows the relationship between two moving averages of price, the OsMA shows the relationship between the MACD and its own signal line. This makes the OsMA more sensitive to changes in momentum.

What does a zero-line cross signify? A zero-line cross on the OsMA occurs at the exact same time as a crossover between the MACD line and the Signal line. A cross above zero is a bullish signal, while a cross below zero is a bearish signal.

How can I access the Oscillator Moving Average (OsMA)? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.