All indicators

MACDEEZNUTS

Dec 22, 2015

Static chart image
SignalsMoving Averages

The MACDEEZNUTS indicator is a trend-following strategy tool designed to provide a more responsive Moving Average Convergence Divergence (MACD) analysis while filtering for historical backtesting data from 2015 onwards.

Usage

The Usage section focuses on how the script can be applied to various timeframes and how the modified input lengths affect the output.

By doubling the standard MACD parameters (e.g., using 20, 42, 20 instead of the default 12, 26, 9), the script allows users to trade on shorter timeframes with the smoothing characteristics of a higher timeframe. For instance, applying this script on a 30-minute chart with doubled inputs produces results similar to a standard MACD on a 1-hour chart, but with potentially less noise and improved response times.

Details

The script executes a classic MACD crossover strategy but incorporates two specific structural modifications:

  1. Backtest Filtering: The strategy logic includes a temporal constraint (year > 2014), ensuring that performance metrics only reflect data from 2015 to the present.
  2. Interval Scaling: The script encourages the use of higher input values for the Fast, Slow, and Signal lengths. This approach allows traders to view shorter intervals (like 15-minute or 30-minute charts) while maintaining the trend-following integrity of longer-term cycles.

The core logic relies on the relationship between the MACD value (the difference between two Exponential Moving Averages) and its Signal line (a Simple Moving Average of the MACD value). A crossover of the histogram (delta) above zero triggers a long entry, while a crossunder triggers a short entry.

Settings

  • Fast Length: Sets the length of the shorter Exponential Moving Average (EMA). Increasing this value smooths the signal but increases lag.
  • Slow Length: Sets the length of the longer Exponential Moving Average (EMA).
  • MACD Length: Sets the smoothing period for the signal line (SMA).

FAQ

How do I access MACDEEZNUTS?

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

Why are the default settings different from standard MACD?

The settings are doubled to allow for a "zoomed-in" view of price action without the noise typically associated with lower timeframes, effectively simulating higher timeframe trends on lower timeframe charts.

Can I change the start year for the backtest?

Yes, within the script logic, the "year > 2014" condition can be modified to reflect different historical periods or specific bar counts if more granular control is required.

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.