Moving average

The average price over a set number of recent periods, updated each period to smooth out daily noise.

Why it matters

Moving averages make the trend easier to see. A simple moving average (SMA) weights each day the same; an exponential one (EMA) gives recent days more weight.

How Ocarina Research shows it

Research can overlay SMA and EMA lines on the price chart.

Example

Sample numbers for illustration, not real data

Closes over 5 days are $10, $11, $12, $11 and $13. The 5-day SMA is (10 + 11 + 12 + 11 + 13) / 5 = $11.40.

Formula

SMA = sum of the last n closes / n. EMA today = close x k + EMA yesterday x (1 - k), where k = 2 / (n + 1)

Sources

  • Gerald Appel, Technical Analysis: Power Tools for Active Investors, 2005

All terms

We use cookies and similar technologies to make Ocarina Research work and to understand how it's used. You can accept all, reject non-essential, or customize. See our Privacy Policy for details.