I have my code written to detect whether a candle closes above a higher timeframe EMA or not. The idea is to have the EMA change color to green when the current bar closes above the higher timeframe EMA and color to red when the current bar closes below the higher timeframe EMA. But I have observed ...