OPEN-SOURCE SCRIPT
HaP MACD

HaP MACD - Advanced DEMA Assisted Signal Indicator
Overview
The HaP MACD is an evolution of the classic MACD, designed for traders who demand faster response times and clearer trend visualisations. By integrating DEMA (Double Exponential Moving Average) logic into the standard MACD framework, this indicator filters out noise and highlights momentum shifts with a unique color-coded dot system.
How It Works
The indicator calculates two types of MACD: a standard one for the main lines and a DEMA-based one for signal generation. This dual approach ensures you stay in the trend while being alerted the moment the momentum starts to fade.
Visual Guide & Color Logic
The signal dots are placed directly on the MACD line to guide your decisions:
🔵 Blue Dot: The Entry Signal. Appears when DEMA conditions first align for a bullish move.
🟢 Green Dot: Strong Momentum. The trend is active and the MACD value is increasing.
🟠 Orange Dot: Warning Signal. The bullish trend is still active, but the momentum is slowing down (MACD is lower than the previous bar).
🔴 Red Dot: Exit Signal. The bullish condition has ended. It’s time to consider closing the position or tightening stops.
Key Features
Reduced Lag: DEMA integration provides earlier signals than standard EMA-based MACDs.
Trend Monitoring: Easily distinguish between a healthy trend (Green) and a tiring trend (Orange).
Customizable: Choose between EMA and SMA for both the oscillator and signal calculations.
Crossover Markers: Optional triangle markers for classic MACD crossovers (can be enabled in settings).
Overview
The HaP MACD is an evolution of the classic MACD, designed for traders who demand faster response times and clearer trend visualisations. By integrating DEMA (Double Exponential Moving Average) logic into the standard MACD framework, this indicator filters out noise and highlights momentum shifts with a unique color-coded dot system.
How It Works
The indicator calculates two types of MACD: a standard one for the main lines and a DEMA-based one for signal generation. This dual approach ensures you stay in the trend while being alerted the moment the momentum starts to fade.
Visual Guide & Color Logic
The signal dots are placed directly on the MACD line to guide your decisions:
🔵 Blue Dot: The Entry Signal. Appears when DEMA conditions first align for a bullish move.
🟢 Green Dot: Strong Momentum. The trend is active and the MACD value is increasing.
🟠 Orange Dot: Warning Signal. The bullish trend is still active, but the momentum is slowing down (MACD is lower than the previous bar).
🔴 Red Dot: Exit Signal. The bullish condition has ended. It’s time to consider closing the position or tightening stops.
Key Features
Reduced Lag: DEMA integration provides earlier signals than standard EMA-based MACDs.
Trend Monitoring: Easily distinguish between a healthy trend (Green) and a tiring trend (Orange).
Customizable: Choose between EMA and SMA for both the oscillator and signal calculations.
Crossover Markers: Optional triangle markers for classic MACD crossovers (can be enabled in settings).
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que la republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.