All indicators

MACD ReLoaded STRATEGY

Jul 4, 2021

Static chart image
SignalsMoving Averages

The MACD ReLoaded STRATEGY indicator provides a versatile backtesting framework for Gerald Appel's classical Moving Average Convergence Divergence by allowing users to toggle between 11 different moving average types to optimize for smoothness or reactivity. This tool enables traders to refine signal generation based on specific market timeframes and volatility conditions through an adjustable, multi-functional calculation engine.

Usage

The Usage section focuses on how to leverage the various moving average types to generate entry and exit signals. In this strategy version, a long entry is triggered when the MACD histogram crosses above zero, and a short entry is triggered when it crosses below zero.

  • Short-Term Trading: For lower timeframes, moving averages like TILL (Tillson T3), WWMA, and VAR (VIDYA) are often preferred as they produce fewer signals, effectively filtering out market noise and whipsaws.
  • Long-Term Trading: For daily or weekly charts, types such as SMA, WMA, or the custom MACDAS and Volume Weighted variants may provide higher accuracy based on historical trends.
  • Visual Analysis: The script includes a bar-coloring feature that highlights the current trend direction (Green for bullish, Red for bearish) based on the most recent MACD crossover, allowing for quick visual confirmation of the strategy's current state.

Details

The script departs from the standard MACD, which traditionally uses Exponential Moving Averages (EMA). By refactoring the core logic, it allows the MACD line and Signal line to be calculated using any of the 11 integrated algorithms. This flexibility addresses the limitations of standard EMAs, such as lag or over-sensitivity.

Key implementations include:

  • VAR (VIDYA): Uses a Variable Index Dynamic Moving Average that adjusts its alpha based on volatility via the Chande Momentum Oscillator (CMO).
  • ZLEMA: A Zero Lag Exponential Moving Average designed to reduce the inherent delay found in standard trend-following indicators.
  • TILL (Tillson T3): Provides a superior smoothing effect with minimal overshoot by using a generalized DEMA approach.
  • TSF (True Strength Force): Utilizes linear regression values to project price movement.

Settings

  • Source: Determines the price data used for calculations (e.g., Close, Open, HL2).
  • Short Moving Average Length: Sets the period for the faster moving average (Default: 12).
  • Long Moving Average Length: Sets the period for the slower moving average (Default: 26).
  • Trigger Length: Sets the period for the Signal line (Trigger) calculation (Default: 9).
  • TILLSON T3 Volume Factor: Adjusts the damping factor for the T3 moving average; higher values increase reactivity.
  • Bar Coloring On/Off: Toggles the trend-based coloring of price bars on the chart.
  • Moving Average Type: A dropdown menu to select from 11 variations (SMA, EMA, WMA, DEMA, TMA, VAR, WWMA, ZLEMA, TSF, HULL, TILL).
  • Date Range Inputs: Allows users to define specific "From" and "To" dates (Day, Month, Year) to isolate backtesting results to a particular historical period.

FAQ

How do I change the signal sensitivity of the strategy? You can adjust the "Moving Average Type" to a more reactive model like HULL or ZLEMA for faster signals, or change the "Short" and "Long" lengths to widen or narrow the gap between the averages.

Can I use this for automated trading? Yes, the strategy includes built-in strategy.entry functions for backtesting and alertcondition functions for real-time notifications which can be linked to external execution bridges.

How can I access the MACD ReLoaded STRATEGY? 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.