OPEN-SOURCE SCRIPT

Multi-Indicator Dashboard

112
//version=5
indicator("Multi-Indicator Dashboard", overlay=true)

// ----------
// Inputs
// ----------
// EMAs
ema9Length = input.int(9, "EMA 9 Length", minval=1)
ema15Length = input.int(15, "EMA 15 Length", minval=1)
ema20Length = input.int(20, "EMA 20 Length", minval=1)
ema50Length = input.int(50, "EMA 50 Length", minval=1)
ema100Length = input.int(100, "EMA 100 Length", minval=1)
ema200Length = input.int(200, "EMA 200 Length", minval=1)

// Bollinger Bands
bbLength = input.int(20, "Bollinger Length", minval=1)
bbStdDev = input.int(2, "Bollinger StdDev", minval=1)

// SMA
sma44Length = input.int(44, "SMA 44 Length", minval=1)

// ----------
// Calculations
// ----------
// EMAs with Color Conditions
ema9 = ta.ema(close, ema9Length)
ema15 = ta.ema(close, ema15Length)
ema20 = ta.ema(close, ema20Length)
ema50 = ta.ema(close, ema50Length)
ema100 = ta.ema(close, ema100Length)
ema200 = ta.ema(close, ema200Length)

// Bollinger Bands
basis = ta.sma(close, bbLength)
dev = ta.stdev(close, bbLength)
upperBB = basis + bbStdDev * dev
lowerBB = basis - bbStdDev * dev

// VWAP
vwap = ta.vwap(close)

// SMA 44
sma44 = ta.sma(close, sma44Length)

// ----------
// Plotting
// ----------
// Dynamic Color 9 EMA
plot(ema9, "EMA 9", color=ema9 > ema9[1] ? color.new(#00FF00, 0) : color.new(#FF0000, 0), linewidth=2)

// Other EMAs (Static Colors)
plot(ema15, "EMA 15", color=color.new(#FFA500, 0)) // Orange
plot(ema20, "EMA 20", color=color.new(#FF69B4, 0)) // Hot Pink
plot(ema50, "EMA 50", color=color.new(#0000FF, 0)) // Blue
plot(ema100, "EMA 100", color=color.new(#800080, 0)) // Purple
plot(ema200, "EMA 200", color=color.new(#FF0000, 0)) // Red

// Bollinger Bands
plot(basis, "BB Basis", color=color.new(#787B86, 50))
plot(upperBB, "Upper BB", color=color.new(#2962FF, 50), style=plot.style_linebr)
plot(lowerBB, "Lower BB", color=color.new(#2962FF, 50), style=plot.style_linebr)

// VWAP
plot(vwap, "VWAP", color=color.new(#00CED1, 0), linewidth=2)

// SMA 44
plot(sma44, "SMA 44", color=color.new(#FFD700, 0)) // Gold

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.