Need help on Heikin candle stick with EMA and RSI

Hi,

Could you please help me to get the code for the below stratgie.

Buy: Heikin ashi candle should close above the SMA 20 line and RSI also cross over
Sell : Heikin ashi candle should close below SMA 20 line and RSI should also cross over

Thanks in advance…

Sridhar

hElLO tRaDeR,

BUY SCRIPT:

SET HC = ((OPEN+HIGH+LOW+CLOSE)/4) 
HC > SMA(HC , 20) AND 
RSI(CLOSE, 9) > RSI(CLOSE, 14) 

SELL SCRIPT:

SET HC = ((OPEN+HIGH+LOW+CLOSE)/4) 
HC < SMA(HC , 20) AND 
RSI(CLOSE, 9) < RSI(CLOSE, 14) 

Hi, Is this for Pi, also RSI crossover, can you please elaborate it.

Yes its for Pi. for RSI “Buy” - Cross over 14 period with EMA 9 and Sell - 9 EMA cross over RIS period 14.