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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -