Please code My Strategy MA Cross and PSAR

Buy :

EMA 5 Cross Up EMA 20 from Below and PSAR be in Buy Signal.

Buy Exit :

PSAR Sell Signal.

Short :

EMA 5 Cross Down EMA 20 from above and PSAR be in Sell Signal.

Short Exit :

PSAR Buy Signal.

As per the above condition

Buy Script:

CROSSOVER(EMA(CLOSE,5),EMA(CLOSE,20)) AND PSAR(0.02, 0.2))

BuyExit:

PSAR(0.02, 0.2)

SellScript:

CROSSOVER(EMA(CLOSE,20),EMA(CLOSE,5)) AND PSAR(0.02, 0.2))

SellExit:

PSAR(0.02, 0.2)

Please check your buy exit and sell exit conditions are same