Kindly help me code the below mentioned strategy-
Buy Signal: - IF
• 20-Day EMA is above close price and
• RSI(10) is less than 55
• 7-day SMA of RSI(10) is less than RSI(10)
Sell Signal: IF
• 20 Day EMA is below close price and
• RSI(10) is above 45
• 7 day SMA of RSI(10) is greater than RSI(10)