Digital Nivesh: Triveni Sangam
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © digitalnivesh

//@version=5
indicator("Digital Nivesh: Triveni Sangam",overlay=true)

sLen = input(9,title="SMA length")
mFactor = input(2,title="BB Factor")
bLen = input(20,title="BB Length")
plot(ta.vwap,color=color.red)
plot(ta.sma(high,sLen),color=color.green)

[mid,u,l] = ta.bb(close,bLen,mFactor)
p1= plot(u,color=color.black)
plot(mid,color=color.purple)
p2 = plot(l,color=color.black)
fill(p1, p2, title = "Background", color=color.rgb(33, 150, 243, 95))