Hi. Does anyone know the code for a prior moving average value?
I am trying to output the 5 prior ema values, from the current value, into excel. These would be index -1 thru -5 individually as I will use a separate cell in excel for each.
I have the current ema output working, but any help for at least one prior value would be helpful. I am using a 2 minute chart, and will be trying to do the same with current price and the close of the prior 5 bars.
Thank you.
I am trying to output the 5 prior ema values, from the current value, into excel. These would be index -1 thru -5 individually as I will use a separate cell in excel for each.
I have the current ema output working, but any help for at least one prior value would be helpful. I am using a 2 minute chart, and will be trying to do the same with current price and the close of the prior 5 bars.
Thank you.
Comment