Bollinger band strategy

I want to implement this strategy.
Select Atm CE and PE
Buy when 5 min close is above upper Bollinger band.
sell when close is below upper Bollinger band.

Condition checking on option chart.

I had implemented it but not working