All indicators

L2 Enhanced MACD Trend

Dec 24, 2024

Static chart image
Volume BasedSignalsOscillatorsMoving Averages

The L2 Enhanced MACD Trend indicator provides a comprehensive trend analysis tool by integrating classic Moving Average Convergence Divergence (MACD) logic with On-Balance Volume (OBV) and short-term price momentum. It aims to filter out market noise and identify high-probability trend transitions by requiring confluence between price action and volume flow.

Usage

The Usage of the L2 Enhanced MACD Trend revolves around identifying trend shifts through the alignment of three specific components: the MACD crossover, OBV direction, and short-term moving average slopes.

  • Bullish Signals: A "Buy" label appears when the MACD line is above the Signal line, the OBV signal is rising, and the 3-period price moving average is increasing. This indicates that momentum, volume, and immediate price action are all trending upward.
  • Bearish Signals: A "Sell" label is triggered when the MACD line is below the Signal line, the OBV signal is falling, and the 3-period price moving average is decreasing. This suggests a synchronized downward movement in price and volume.
  • Visual Interpretation: The indicator features color-coded columns where green and red represent MACD values relative to the zero line. Blue columns appearing near the signal line represent specific periods where volume and short-term price action are aligned, providing extra confirmation for the current trend.

Details

The script executes a multi-layered calculation process to ensure robust trend detection:

  1. MACD Calculation: It uses the standard difference between a Fast EMA and a Slow EMA, followed by a signal smoothing period.
  2. Volume Integration: It incorporates a modified On-Balance Volume (OBV) calculation. This focuses on cumulative volume change and applies additional EMAs to create a "refined" volume signal that prioritizes periods of high interest.
  3. Momentum Filter: A short-term (3-period) SMA is used as a final filter to ensure that the immediate price direction supports the longer-term MACD momentum before a signal is generated.

Settings

  • Fast Length: The period for the shorter Exponential Moving Average (EMA) used in the MACD calculation (Default: 12).
  • Slow Length: The period for the longer Exponential Moving Average (EMA) used in the MACD calculation (Default: 26).
  • Signal Smoothing: The period used to smooth the MACD line to create the signal line (Default: 9).

FAQ

How do I access L2 Enhanced MACD Trend?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

What is the purpose of the blue columns?

The blue columns highlight specific bars where the OBV signal and the short-term price moving average are both rising, serving as a secondary visual confirmation of bullish volume flow.

Can I use this for scalping?

Yes, due to the inclusion of very short-term filters (3-period SMA and OBV smoothing), the indicator is designed to be responsive to rapid price movements, making it suitable for high-frequency or momentum-based trading strategies.

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.