All indicators

L1 MACD with Overbought and Oversold Detection

Jan 10, 2021

Static chart image
SignalsOscillatorsDivergencesMoving Averages

The L1 MACD with Overbought and Oversold Detection indicator enhances the traditional Moving Average Convergence Divergence by identifying specific zones where the price momentum may be overextended, providing actionable signals for entries.

Usage

The indicator is used to identify potential trend reversals by combining classic MACD crossovers with price-action-based overbought and oversold detection.

  • Bullish Scenario: An "oversold" signal is triggered when a bullish MACD crossover occurs at a point where the MACD line is higher than its previous crossover value despite the price being lower (a form of bullish divergence). This suggests a potential "BUY@NextGoldCross" opportunity.
  • Bearish Scenario: An "overbought" signal is triggered when a bearish MACD crossunder occurs where the MACD line is lower than its previous crossunder value despite the price being higher. This suggests a potential "SELL@NextDeadCross" opportunity.

The indicator plots the MACD line, Signal line, and a color-coded histogram to help visualize momentum strength. Background highlights and labels appear when specific overbought or oversold conditions are met.

Details

This script implements a unique logic to locate entry points that a classic MACD might miss. It calculates the time since the last crossover/crossunder and compares current price and MACD values against their values at the time of the previous signal.

  • Oversold Logic: Evaluated when a bullish crossover occurs. It checks if the current price is lower than the price at the previous crossover while the MACD line value is higher, indicating a strengthening underlying momentum despite lower prices.
  • Overbought Logic: Evaluated when a bearish crossunder occurs. It checks if the current price is higher than the price at the previous crossunder while the MACD line value is lower, indicating weakening momentum despite higher prices.

Settings

  • Input Source: Determines the price data used for the MACD calculations (default is Close).

FAQ

How do I access L1 MACD with Overbought and Oversold Detection?

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

Does this indicator provide exact entry signals?

No, the indicator highlights "rough zones" of overbought and oversold conditions. Users should watch trend movements and consider entering on the current or subsequent MACD crosses.

What is the difference between this and a standard MACD?

A standard MACD only provides crossovers and histogram momentum. This version adds a logical layer to detect overextended price conditions relative to previous momentum cycles, which are marked with specific labels and background highlights.

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.