Hi Davide,
Thanks for your followup.
I just sent you my code via Message.
If you can take a look at it to identify the cause of the issue, I would appreciate it.
Thanks
Best regards
Michio
When you check the plot, did your plot match? It wasn’t too clear in the instructions, but I think the moving average for this questions uses Centered windows. For time t, it will be between t-5 and t+5 for the 10 day window size.
Thanks @Davide for your advice via Message.
Thanks to your advice I really understand the reason why I got it wrong.
I appreciated your advice.
Best regards
Michio