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
Post a Comment