Custom Bollinger Bands

Hi
I want to create a custom Bollinger Band based on my Indicator for StdDev. My custom StdDev Indicator called Gamma Capture uses tick data. How do I pull my Indicator into the Upper and Lower bands?
Thank you

Upper[0]= sma0 + NumStdDev * stdDev0;
Middle[0]= sma0;
Lower[0]= sma0 - NumStdDev * stdDev0;