All indicators

MACD At Scales with Alerts

Mar 6, 2020

Static chart image
SignalsOscillatorsMoving Averages

The MACD At Scales with Alerts indicator provides a specialized Moving Average Convergence Divergence oscillator that utilizes horizontal scale levels to gauge trade risk and trend momentum. It aims to help traders identify high-probability entries by filtering MACD crossovers based on their position relative to specific threshold levels.

Usage

The tool is designed for scalping and trend-following strategies, particularly when combined with other technical indicators like RSI or EMAs. Traders can monitor crossovers between the MACD and Signal lines relative to defined levels:

  • Level 2 Crosses (±25): Crossovers occurring beyond these levels are generally considered safer entries as they indicate significant momentum and potential exhaustion or strong trend reversals.
  • Level 1 Crosses (±12.5): Crossovers at these levels represent moderate risk and are often used for early trend entries.
  • Baseline Crosses (0 to ±12.5): While offering higher potential returns, entries in this zone carry the highest risk due to lack of established momentum.

For best results, users should look for multi-timeframe alignment. For example, finding a setup on the 5-minute timeframe and confirming the trend direction on the 15-minute or 30-minute charts.

Details

The script calculates the standard MACD line, Signal line, and Histogram but adds a multi-option smoothing mechanism. Unlike the standard MACD which typically uses EMAs, this version allows users to select from various Moving Average types (SMA, EMA, WMA, RMA, HMA) for the calculation. The "Scale" aspect refers to the static horizontal lines (Levels) drawn on the oscillator pane, which provide a visual and mathematical anchor for the alert conditions.

Settings

  • Source: The price data used for the MACD calculation (e.g., Close).
  • Fast Length: The period for the shorter moving average.
  • Slow Length: The period for the longer moving average.
  • Signal Smoothing: The period used to calculate the MACD Signal line.
  • Smoothing MA Type: Allows selection between SMA, EMA, WMA, RMA, and HMA for the core calculations.
  • Show MACD/Signal/Histogram: Toggle switches to customize the visual output of the indicator.
  • Level 0, 1, and 2: Adjustable values for the horizontal scale lines used to trigger alerts and define risk zones.

FAQ

How do I use the alerts?

The script includes built-in alert conditions for crossovers occurring at Level 1 and Level 2. You can create an alert by selecting "MACD At Scales with Alerts" in the TradingView Alert menu and choosing the specific level condition you wish to track.

Is this a standalone strategy?

No, this indicator is designed to be used as part of a broader trading system. It is recommended to use at least two other indicators (such as RSI or EMAs) to confirm the signals generated by the MACD scales.

How can I access this tool?

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.