How to do this in Bollinger Band

#1
Dear All,

Is there any method to pass an array into the PERIODS argument of BBandTop / BBandBot functions. I don't want to use a fixed period and therefore I have calculated the period based on the volatility which will be changed from bar by bar. However, the calculated period cannot be directly used in the BBandTop / BBandBot functions. Is it possible to do this?

Thank you!!!
 

Similar threads