1: The candle which has broken resistance or support, let it close before taking trade. This way you can avoid traps and fake breakouts.
2: The price always tends to return to 20 EMA. Hence if the price is very far from 20 EMA, it may come back to the EMA rather than going further away from EMA.