Volume with EMA 20 and 2 BB  SALEM_ALSALEM1
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © salem_alsalem1

//@version=5
indicator("Volume with EMA 20 and 2 BB")

emainput = input(defval = 20 , title = "EMA lenght:")
bb1 = input(defval = 15 , title = "first BB lenght:")
bb1_mult = input(defval = 2.0 , title = "first BB mult:")
bb2 = input(defval = 15 , title = "second BB lenght:")
bb2_mult = input(defval = 1.0 , title = "second BB mult:")

vol = volume

[middle1, upper1, lower1] = ta.bb(vol, bb1, bb1_mult)
[middle2, upper2, lower2] = ta.bb(vol, bb2, bb2_mult)
ema = ta.ema(vol , emainput)

cond = vol >= upper1 and upper2 and ema

plot(vol, title = "volume", style = plot.style_columns , color = cond ? color.blue:color.aqua, linewidth = 3)
plot(upper1, title = "first BB ",  color = color.green , linewidth = 2)
plot(upper2, title = "second BB",  color = color.orange, linewidth = 2)
plot(ema, title = "EMA", color = color.red, linewidth = 2)

alertcondition(cond , "ultar High" , "volume ultra high ")