Script Code PI or ALGOS

Hello, can anyone please help me with Script Code:

  • Buy Signal if stock price crosses above EMA (HIGH,5) along with WILLIAMS %R (27) crosses above -30
  • Sell Signal if stock price crosses low EMA (LOW,5) along with WILLIAMS %R (27) crosses below -70

Thanks,
Nish J

If you are fine to use Zerodha API to do this, you can contact me to get it custom coded. 9874795959