Candle crossing above BB

Hello Sir

I need code for the situation when the candle is crossing above or below Bollinger band, not at closing but when breaks the top or bottom of BB.

Regards
Fellow trader

Sir pls gibe code. .its been 3 days

For the above given condition

when Bollinger band top cross last traded price

LAST > BBT(CLOSE, 20, 2, EXPONENTIAL)

when Bollinger band bottom cross last traded price

LAST < BBB(CLOSE, 20, 2, EXPONENTIAL)