I made moving average plot for 3 month with monthly line data. when I used sma option, the start xaxis is 3 not 2. how can i move x axis for sma plot to left?
Now I get what you are asking for but I'm not sure if I understand your question well.
Just to clarify, SMA with period: n (in our case 3), calculates the average from the current point and (n-1) previous ones.
So for the 3rd point, the average is calculated from 1st, 2nd and 3rd and displayed on the 3rd point.
I assume you want to have the first average displayed on the 2nd point but I think it will be unintuitive for the user.
The point is, how do you want to calculate the SMA starting on the 2nd point when the period equals: 3?
There is no way to display SMA for the 2nd point but i created a custom solution for you, by simply adding a new series which counts the average of the points from the previous one.