Need help in zerodha pi scanner

Hi,

need help in coding a scanner. I am using simple logic:-

BUY

1st 5min Heiken ashi candle above 50 day EMA
2nd 5 min HA candle closes above 1st HA candle &
RSI (14,close) >50

SELL

1st 5 min Heiken ashi candle below 50 day EMA
2nd 5 min HA candle below above 1st HA candle &
RSI (14,close) < 50

Scanner on pi works based on candle stick chart type, it is not possible to run scanner based on heiken ashi,
the above mentioned conditions can be achieved without coding skills using streak , you can try creating scanner login to streak.zerodha.com