I need to calculate the distance of previous Ema crossover interms of bars. Following is the simple code. It is not giving the value interms of bars. can someone help resolv