I think it should be simple just by a cursory lo
ok,If you know how to calculate live 3 EMA (1/2*current quote + 1/2*yesterday's 3EMA), and check for high price and low price of the day. If your position is short - and if yur live 3EMA has not touched day's high, the candle is not touching. If yur position is long -and if yur day's high is greater than the live 3EMA yur candle is not touched.