I am trying to write an indicator which will plot the difference between the average of the EMAs of four periods and one other ema. I have written the attached code. As long as I only calculate the average of the EMAs of four periods the indicator ...