TradingView
Daveatt
Jun 29, 2019 8:22 AM

nTrend MACD Zero LAG 

Bitcoin / U.S. dollarBitstamp

Description

Hello traders

This indicator is to color the candles based on a MACD Zero LAG
Just wanted to show that removing the noise from the candles natural coloring could be very helpful to determine a trend and stay focused

Enjoy
Dave
Comments
ZinhoSte
can I please have the lower indicator? That modified macd looks good :D
Daveatt
@ZinhoSte, Sure it's open source so you can already access it and add it to your chart
ZinhoSte
@Daveatt, i cant find that specific 0 lag macd
Daveatt
@ZinhoSte, Gotcha, try "MACD Zero Lag"
Zero in letters
ZinhoSte
@Daveatt, hmmm still cant find it, can you give me the code or script pls?
Daveatt
@ZinhoSte,
//@version=4 study(title="MACD 0 Lag", shorttitle="MACD 0 Lag") source = close fastLength = input(40, minval=1) slowLength=input(100,minval=1) signalLength=input(150,minval=1) // FAST LINE ema1= ema(source, fastLength) ema2 = ema(ema1,fastLength) differenceFast = ema1 - ema2 zerolagEMA = ema1 + differenceFast demaFast = (2 * ema1) - ema2 // SLOW LINE emas1= ema(source , slowLength) emas2 = ema(emas1 , slowLength) differenceSlow = emas1 - emas2 zerolagslowMA = emas1 + differenceSlow demaSlow = (2 * emas1) - emas2 //MACD LINE ZeroLagMACD = demaFast - demaSlow //SIGNAL LINE emasig1 = ema(ZeroLagMACD, signalLength) emasig2 = ema(emasig1, signalLength) signal = (2 * emasig1) - emasig2 hist = ZeroLagMACD -signal cHist = hist > 0 ? color.lime : color.red plot(hist, title="histogram", style=plot.style_histogram, color = cHist, linewidth = 10) signalLine=plot(signal, title="signal", color=color.red ,linewidth = 1) zlLine = plot(ZeroLagMACD, title="MACD 0 Lag", color=color.blue) cDif = hist > 0 ? color.blue : color.red //fill(zlLine, signalLine, color=cDif)
greyghost7
can i have the link for that oscillator
Daveatt
@greyghost7, you have even better, you have the source code up there :)
Otherwise tradingview.com/script/GcbLcwG7-MACD-Zero-Lag/
greyghost7
@Daveatt, i appreciate it :D
More