trading view - How to draw MACD and EMA in one script ( Pine Editor)-Tradingview -


i want draw macd , ema in 1 script . implement below :

//@version=3 study("example of alertcondition") fast = 12, slow = 26 fastma = ema(close, fast) slowma = ema(close, slow) macd = fastma - slowma src = input(close) ma_2 = ema(src, 36) plot(ma_2, color=red) plot(macd, color=blue) 

but don't draw anything. if remove

plot(ma_2, color=red) 

so script draw macd.if remove

plot(macd, color=blue) 

so script draw ema. why can not draw 2 indicators in case ?

can me .

thanks


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -