BB = 20 //20 periods
BBdev = 2 //2.0 standard deviation
BBavg = average[BB,0](close) //BB mean (middle line)
BBsup = BBavg + ((std[BB](close)) * BBdev) //BB Upper Band
BBinf = BBavg - ((std[BB](close)) * BBdev) //BB Lower Band
BBbis = 20 //20 periods
BBdevbis = 2.5 //2.0 standard deviation
BBavgbis = average[BBbis,0](close) //BB mean (middle line)
BBsupbis = BBavgbis + ((std[BBbis](close)) * BBdevbis) //BB Upper Band
BBinfbis = BBavgbis - ((std[BBbis](close)) * BBdevbis) //BB Lower PRTBandsUp
sma20 = Average[20](close)
sma50 = Average[50](close)
cond = (sma20> sma50)
if cond then
COLORBETWEEN(BBsup,BBsupbis,160,160,160,100)
COLORBETWEEN(BBinf,BBinfbis,160,160,160,100)
//BACKGROUNDCOLOR(160,160,160,100)
endif
return