// Downloaded From https://www.WiseStockTrader.com
_SECTION_BEGIN("BB Width Ratio");
Price = ParamField("Price", 4);
Periods = Param("Periods", 15, 2, 100, 1 );
Width = Param("Width", 2, 0, 10, 0.05 );
Color = ParamColor("Color", colorRed );

bbt = BBandTop( Price , Periods, Width ); 
bbb = BBandBot( Price , Periods, Width );
bbWidthRaio = (bbt-bbb)/MA(Price, Periods);
Plot(EMA(bbWidthRaio,3), _DEFAULT_NAME(), colorRed);
_SECTION_END();