Vegas+200+Big Vol by RSU
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © rsu9111

//@version=5
indicator(title="Vegas+200+Big Vol by RSU",shorttitle="Vegas200BV[RSU]",overlay=true)
ema144=ta.sma(ta.ema(close,144),5)
ema169=ta.sma(ta.ema(close,169),5)

ema288=ta.sma(ta.ema(close,288),5)
ema338=ta.sma(ta.ema(close,338),5)

ema576=ta.sma(ta.ema(close,576),5)
ema676=ta.sma(ta.ema(close,676),5)

color1=color.new(color.orange,90)
color2=color.new(color.red,90)
color3=color.new(color.lime,95)
color4=color.new(color.gray,90)


ema200=ta.sma(ta.ema(close,200),5)
ma200=ta.sma(close,200)
plot(ema200,color=ta.change(ema200) > 0 ? color.green : color.red,linewidth=2,title="EMA200")
plot(ma200,color = bar_index % 3 == 0 and not barstate.islast ? ta.change(ma200) > 0 ? color.green : color.red:color.new(color.blue,100),linewidth=2,title="MA200")


plotchar(ta.crossover(ema144,ema169),location=location.belowbar,size=size.normal,title="144 crossover 169",char='✌️')
l144=plot(ema144,color=color1,title="144")
l169=plot(ema169,color=color1,title="169")

l288=plot(ema288,color=color3,title="288")
l338=plot(ema338,color=color3,title="338")

l576=plot(timeframe.isdaily?ema576:na,color=color4,title="576")
l676=plot(timeframe.isdaily?ema676:na,color=color4,title="676")


fill(l144,l169,color=ema144>ema169 and ema144>=ema144[1]?color1:color2,title="144,169 channel")
fill(l288,l338,color=ema288>ema338 and ema288>=ema288[1]?color3:color4,title="288,338 channel")

//Big Vol BOX
boxcolor1=color.new(color.yellow, 80)
var boxindex=0
avg = ta.sma(volume,60)
std = ta.stdev(volume,60)
condition = (volume-avg) > 4*std
if condition
    boxcolor=boxcolor1
    myBox = box.new(left=bar_index, top=high,border_color=boxcolor,right=bar_index+20, bottom=low,bgcolor=boxcolor)


