Need Codes to generate a signal

Hi,

I need code for -

Heinkin Ashi Candle with EMA 14

Buy: when the candle opens above EMA, 14

Sell: when the candle opens below EMA, 14

HeLlO TrAdEr,

BUY SCRIPT:

SET HO = (REF(OPEN,1) + REF(CLOSE,1))/2 AND 
HO > EMA(HO,14) 

SELL SCRIPT:

SET HO = (REF(OPEN,1) + REF(CLOSE,1))/2 AND 
HO < EMA(HO,14) 
1 Like