For example, on July 10, the ordinary arithmetic mean10 ma = (d1+D2+...+d10)/10.
Where d 1-d 10 is the daily closing price during the calculation period (from 1 to 10).
On the day of 1 1, remove D 1 from the formula and add D 1 1 to get the MA of 1 1, and connect the MA calculated every day into a line, which is what you call the average.
There will be multiple moving averages in different calculation periods, such as 5-day, 10, 20-day and 100.
There are several other weighted moving averages, which have different functions, but look at MA the most.