0

I added a 200 period moving average indicator to a Yahoo Finance graph. I assume that "period" denotes 1 day, but I am seeing unexpected behavior.

In the 1 day view the latest value of the moving average is one value (220 at the moment). In the 1 year view, the latest value is different (201 at the moment).

Shouldn't the moving average indicator plot the same values regardless of the view?

2

Here are some possible reasons for what cause differences in the data.

A 200 period moving average means 200 periods not 200 days. If the data used is one minute data then the moving average would be computed on 200 one minute bars.

In order for the latest values to agree on two different charts:

  • The time period of the data must be the same. Both must be one minute bars or one day bars, etc.
  • The starting pointing for the calculation of each MA must be the same even though you are not displaying the full amount of the data in the chart.
  • The moving average must be the same type in each calculation (simple, weighted or exponential).

Longer term MAs lag shorter term MAs because longer time period MAs are slower. IOW, a 200 period EMA on one minute bars will be more responsive than a 200 period EMA on daily bars. I suspect that is what is happening here because you have a value of 201 on the 1 year view and a value of 220 on the one day view.

1
  • Got it. It looks like I need to select a chart "Interval" of 1D to get the expected value. Thank you! – Gili May 6 '20 at 20:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.