Modified Stochastic MACD Oscillator - Vitali Apirine
Oct 12, 2019

The Modified Stochastic MACD Oscillator - Vitali Apirine indicator provides a hybrid technical analysis tool that combines the momentum characteristics of the MACD with the range-bound properties of the Stochastic oscillator to identify overbought and oversold conditions across various timeframes.
Usage
The Usage section focuses on identifying trend shifts and potential reversal points. Unlike a standard MACD, which has an unbounded scale, this indicator uses a normalized scale that allows for consistent overbought and oversold levels (defaulting at 1.0 and -1.0).
- Bullish Signals: A crossover of the Stochastic MACD line above the Signal line, especially when occurring below the oversold level, suggests an upward momentum shift.
- Bearish Signals: A crossunder of the Stochastic MACD line below the Signal line, particularly above the overbought level, indicates potential downward pressure.
- Histogram Analysis: The histogram measures the distance between the MACD and Signal lines. Rising histogram bars indicate strengthening momentum, while falling bars suggest weakening momentum.
- Momentum Background: The optional background coloring provides an immediate visual cue for the current trend bias based on the histogram's position relative to the zero line.
Details
This tool is based on the original formulation by Vitali Apirine. It functions by applying Stochastic normalization techniques to Moving Average convergences. Instead of calculating the difference between two EMAs directly, it calculates the Stochastic position of the fast and slow EMAs relative to a user-defined lookback period.
The resulting values are then subtracted and scaled by a factor of 10 to create the oscillator. This implementation ensures scale symmetry, making it easier for traders to define fixed horizontal levels for extreme market conditions, a task that is difficult with traditional MACD implementations.
Settings
Core Parameters
- Stochastic Period: Defines the lookback range (Lowest Low/Highest High) used to normalize the moving averages.
- Fast Average Period: The lookback period for the shorter-term Exponential Moving Average.
- Slow Average Period: The lookback period for the longer-term Exponential Moving Average.
- Signal Period: The period for the EMA applied to the Stochastic MACD line to create the signal line.
Visuals
- Show Histogram: Toggles the visibility of the momentum histogram.
- Histogram Color Scheme: Selection between two different coloring logics for the histogram bars.
- Show Momentum BGC: Enables or disables background coloring based on momentum direction.
- Line Thickness: Adjusts the visual weight of the oscillator and signal lines.
- Show Crossover Markers: Toggles the triangle icons that appear upon MACD/Signal line crosses.
Thresholds
- Overbought Level: Sets the horizontal threshold for identifying overextended upside momentum.
- Oversold Level: Sets the horizontal threshold for identifying overextended downside momentum.
FAQ
How do I interpret the overbought and oversold levels?
The levels (default 1.0 and -1.0) act as zones where the price may be overextended. When the Stochastic MACD line enters these areas and then crosses the signal line, it often indicates a higher probability reversal or retracement.
Can I change the moving average types?
The current implementation uses Exponential Moving Averages (EMA) as per the original design by Vitali Apirine to ensure a balance between responsiveness and smoothing.
How do I access the Modified Stochastic MACD Oscillator - Vitali Apirine?
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.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.