Improved Moving Average Convergence/Divergence

Simple change to the standard MACD formula I like to use that slow it down and reduces the amount of false signals while allowing strong/good signals through,
Remove from Favorite Scripts Add to Favorite Scripts
study(title="Improved Moving Average Convergence/Divergence", shorttitle="Improved MACD")
source = close
fastLength = input(24, minval=1), slowLength=input(52,minval=1)
fastMA = ema(source, fastLength)
slowMA = ema(source, slowLength)
macd = fastMA - slowMA
signal = sma(macd, signalLength)
hist = macd - signal
plot(hist, color=red, style=histogram)
plot(macd, color=blue)
plot(signal, color=orange)


Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out