Query on Bollinger Band scripting(for alerts)

I want to create a scripted alert on Zerodha Pi, when closing price of 30 min candlestick is above the Bollinger Band top or below the Bollinger Band bottom. The specifications of my bollinger band is in the screenshot attached.What will be the code?image