Code for RSI cross MA

 
Hi Friends,
This is Naveen... New to coding...
Could some one please code me the following:
RSI (14) crossing Moving Average..
I've seen indicators but I want the buy and sell and signals with it..
Buy when RSI(14) is crossing the MA and viceversa..
I want to back-test it and try different values with it...
Could someone please help me with coding.

Regards,
Naveen
Reason: