Untitled
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ //@version=4 study(title="EMA clouds", shorttitle="EMA clouds Elle", overlay=true) ema4 = ema(close, 4) ema5 = ema(close, 5) ema8 = ema(close, 8) ema21 = ema(close, 21) ema34 = ema(close, 34) ema50 = ema(close, 50) //Top charts ema4plot = plot(ema4, color=#2ecc71, transp=100, style=plot.style_line, linewidth=1, title="EMA(4)") ema5plot = plot(ema5, color=#2ecc71, transp=100, style=plot.style_line, linewidth=1, title="EMA(5)") fill(ema4plot, ema5plot, color=ema4 > ema5 ? color.green : color.red, transp=60, editable=true) //Middle charts ema8plot = plot(ema8, color=#2ecc71, transp=100, style=plot.style_line, linewidth=1, title="EMA(8)") ema21plot = plot(ema21, color=#2ecc71, transp=100, style=plot.style_line, linewidth=1, title="EMA(21)") fill(ema8plot, ema21plot, color=ema8 > ema21 ? color.green : color.red, transp=60, editable=true) //bottom charts ema34plot = plot(ema34, color=#2ecc71, transp=100, style=plot.style_line, linewidth=1, title="EMA(34)") ema50plot = plot(ema50, color=#2ecc71, transp=100, style=plot.style_line, linewidth=1, title="EMA(50)") fill(ema34plot, ema50plot, color=ema34 > ema50 ? color.green : color.red, transp=60, editable=true)
Leave a Comment