Heiken ashi and RSI

I’m new with zerodha pi, i looking for code , for Buy when heiken ashi 5min chart make 2 consecutive green candle or make a dogi star and RSI is bolow 20.
Sell: 2 red candle stick or a Dogi star and RSI above 80

1 Like