Impulse MACD on TradingView: Formula, Settings and Testing
Impulse MACD compares a smoothed central price estimate with smoothed high/low bands. Pineify's implementation produces an impulse series, a signal average and their difference. The name “zero lag” describes its smoothing construction; it does not mean predictions arrive without delay or error.
Calculation and chart outputs
The Pineify implementation uses hlc3, the average of high, low and close. Its central line is twice the EMA of that source minus an EMA of the first EMA. Smoothed moving averages of high and low form the surrounding band.
- Above the upper band, impulse equals central line minus upper band.
- Below the lower band, impulse equals central line minus lower band.
- Inside the band, impulse is zero.
- The signal is an SMA of impulse; the secondary histogram is impulse minus signal.
The supplied configuration uses 34 bars for the band/central calculation and 9 for the signal. Those are defaults, not demonstrated optimal parameters.

Colors use the source's position relative to the central line and bands. In this implementation, green states distinguish the source above the central line and upper band from above the central line alone; red marks the lower-band condition, with orange for the remaining state. A color is a calculation category, not an independently measured probability of success.
Add and inspect the indicator
In Pineify, find Impulse MACD in the indicator library, add it, inspect its parameters and generate the script. Copy it to TradingView's Pine Editor and add it to the chart. Confirm the selected symbol, timeframe and three outputs before creating rules. A different community script with the same name may have different smoothing or color rules.
Turn observations into testable rules
An impulse/signal crossover is one candidate event. Requiring impulse above zero is an additional filter; it changes the sample and can exclude both losing and winning trades. A divergence requires an explicit swing definition and confirmation delay, not a visual choice made after seeing the reversal.
To compare settings, keep a small predetermined set and reserve a later period for evaluation. A longer signal average smooths the output and adds delay. It does not establish that the remaining signals are more profitable. This article supplies no reproducible AAPL, BTC or TSLA performance dataset.
Backtest worksheet
Record the exact version, inputs, exchange symbol, chart type, timeframe and date window. Define entries, exits, position size and whether events are evaluated at candle close. Include commission and slippage. Review the individual orders, drawdown and trade count alongside net results.
A possible research rule is a long entry on a confirmed impulse/signal cross while impulse is positive, followed by an exit on the opposite cross. Specify any protective stop separately; an indicator line is not an order. Compare the rule on a held-out period and avoid treating a chosen reward/risk ratio as proof of positive expectancy. See Pine strategy examples for the distinction between an indicator and a strategy.
FAQ
Does it repaint? The inspected calculation uses current-chart prices, which change on an open candle. There is no explicit bar-close gate in that calculation. If you need closed-bar signals, make that a rule and test alerts accordingly; do not generalize this answer to every script with the name. TradingView explains the different meanings of repainting.
What settings work best? No universal setting is established here. Start with the documented defaults so comparisons are reproducible, then evaluate any change after costs on separate data.
Is it classic MACD? No. Classic MACD compares two moving averages; this implementation measures a central line's excursion outside smoothed high/low bands.


