Hi, I want to count how many candles (before a bearish engulfing candle) that closes above the exponential moving average. I just cant figure out how to code it. I tried For-do-next and failed. can anyone help me with this?