Implementation of Bollinger Band Function