OPEN-SOURCE SCRIPT

Zero-Lag MACD/PPO

MACD/PPO Indicator, with optional faster EMA's to reduce lag.

-Use "MA TYPE" to select SMA, EMA, Double-EMA, Triple-EMA, or Hull as the MACD Source. Default is 'EMA'.
-Use "FAST MA" and "SLOW MA" to set the fast and slow period lengths.
-Use "SIGNAL TYPE" to select SMA, EMA, Double-EMA, Triple-EMA, or Hull as the Signal formula. Default is 'EMA'.
-Use "SIGNAL LENGTH" to set the Signal period length.
-Use "HIST. SIZE" to change the scaling of the histogram and make it stand out more.
-Use "COLOR SIGNALS" to select when to signal green/red on the MACD line.
--- "None" is always black.
--- "Over/Under" will signal based on MACD being over or under the Signal line.
--- "Rising/Falling" will signal based on MACD being over/under the Signal line and both are rising/falling.
-Use "PPO INSTEAD" to use Price Percent Oscillator scaling (works better for long-term and large price fluctuation).
Moving Average Convergence / Divergence (MACD)Price Oscillator (PPO)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer