Is it possible to code this strategy?

BUY when 5 EMA crosses above 30 EMA

Target being the upper bollinger band (10,2).

Stoploss the lower bollinger band

SELL when 5 EMA crosses below 30 EMA

Target will be the lower bollinger band (10,2)

Stoploss Upper bollinger band .

For the above given condition

Buy Script:

CROSSOVER(EMA(CLOSE,5),EMA(CLOSE,30))

Sell Script:

CROSSOVER(EMA(CLOSE,30),EMA(CLOSE,5))

For Lower Bollinger band

CLOSE > BBB(CLOSE, 20, 2, EXPONENTIAL)

For Upper Bollinger band

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