Need help to CODE for RSI above 20 -25 with 5 days WMA

Need CODE for Below
Both in Daily Chart
BUY
RSI(5) CROSSES 20 AND PRICE CLOSES ABOVE 5 DAYS WMA
SELL
RSI(5) BREAKS 80 AND PRICE CLOSES BELOW 5 DAYS WMA

I tried this but not sure how to add daily or monthly on this
RSI(CLOSE, 5) <= 25 AND WMA(CLOSE,5)