Code for pullback strategy

Hii friends,

Please code this strategy Buy: When 3 EMA crossover 15 EMA from below and wait for price to pullback to 15EMA and closes above 3EMA
Enter : High on candle/bar closing above 3EMA
Exit: When Candle/Bar/Price not touching 3 EMA
SL : Low of pullback candle/Bar

Sell: When 3 EMA crossover 15 EMA from above and wait for price to pullback to 15EMA and closes below 3EMA
Enter : Low on candle/bar closing below 3EMA
Exit: When Candle/Bar/Price not touching 3 EMA
SL : High of pullback candle/Bar

For the above given condition

Buy Script:

CROSSOVER(EMA(CLOSE,15),EMA(CLOSE,3)) AND HIGH > EMA(CLOSE,3)

Sell Script:

CROSSOVER(EMA(CLOSE,3),EMA(CLOSE,15)) AND LOW < EMA(CLOSE,3)