IEXLENS

Moving average

A moving average is a line connecting the average closing price of the last several days (or candles). It shows the broad direction of the price.

The 20-day line is the average of the last 20 daily closes. A price above the line is seen as an uptrend and a price below it as a downtrend. The longer the period, the more slowly the line moves.

The exponential moving average (EMA), which gives more weight to recent values, is also widely used.

You can run it yourself on past prices.Open Strategy Testing

These explanations are general educational information, not investment advice. Calculation methods can differ by exchange.