Code for low of candle is above ema 34 close

I want to have a code for the following

Buy : When the Low of the Candle is above EMA 34 Close and the previous candle close is below EMA 34 ( Candle moving from Bottom crossing EMA 34)

Sell : When the high of the Candle is below EMA 34 close and the previous candle close is above EMA 34

1 Like

Buy:

LOW > EMA(CLOSE, 34) AND REF (CLOSE, 1) < REF(EMA (CLOSE, 34), 1)

Sell:

HIGH < EMA (CLOSE, 34) AND REF (CLOSE, 1) > REF (EMA (CLOSE, 34), 1)
2 Likes