Strategy of SMA and MACD

Sir Kindly provide strategy code includes

For buy:
crossover SMA 13 above SMA 50 above SMA 200
MACD bullish crossover and RSI above 40

For Sell
crossover SMA 13 below SMA 50 below SMA 200
MACD bearish crossover and RSI below 60

Thanks.

For the above given condition

Buy script

SET A = MACDSignal(13, 26, 9, SIMPLE)
SET B = MACD(13, 26, 9, SIMPLE)
SMA(CLOSE,13)>SMA(CLOSE,50) AND SMA(CLOSE,50)> SMA(CLOSE,200) AND CROSSOVER(A, B) AND RSI(CLOSE,14)>40

Sell Script:

SET A = MACDSignal(13, 26, 9, SIMPLE)
SET B = MACD(13, 26, 9, SIMPLE)
SMA(CLOSE,13)<SMA(CLOSE,50) AND SMA(CLOSE,50)< SMA(CLOSE,200) AND CROSSOVER(B, A) AND RSI(CLOSE,14)<60

do you guys do Pine script? and do you recommend me start learning it ?