SMA (Simple Moving Average)
The most straightforward moving average -- equal-weight average over N candles, golden/death crosses, and common period choices.
What is the Simple Moving Average?
The Simple Moving Average (SMA) is the most fundamental moving average. It calculates the average closing price over a fixed number of candles, giving equal weight to every candle in the window.
When a new candle arrives, the oldest candle drops out of the window and the newest one enters. The average recalculates, and the SMA line moves one step forward. This produces a smooth line that tracks the general direction of price without reacting to every small fluctuation.
How It's Calculated
In plain English: add up the closing prices of the last N candles, then divide by N. Every candle in the window counts equally -- the oldest candle has the same influence as the newest one.
This equal weighting is both SMA's strength and its weakness. It produces a clean, easy-to-understand average, but it means the SMA reacts slowly when the price suddenly moves -- the old candles in the window "drag" the average toward where the price used to be.
Common Periods
Certain SMA periods are used so widely that they have become reference points in their own right:
Crossover Signals: Golden Cross and Death Cross
The most popular SMA strategy uses two SMAs with different periods -- a fast one (short period) and a slow one (long period). When the fast SMA crosses above the slow SMA, it suggests the short-term trend is strengthening relative to the long-term trend. When it crosses below, it suggests the trend is weakening.
These crossovers can be used directly as entry and exit conditions in Simula. However, crossover signals are lagging by nature -- by the time the fast SMA has crossed above the slow SMA, a significant portion of the move has already happened.
Strengths and Weaknesses
Strengths
Simplicity: SMA is the easiest moving average to understand and explain. The calculation is transparent -- anyone can verify it with a calculator.
Widely followed: Because so many traders watch the same SMA levels (especially 50 and 200), these levels can become self-reinforcing. When a large number of traders act on the same signal, it can influence the price.
Stability: The equal weighting means SMA does not overreact to a single unusual candle. One spike does not dramatically move the average.
Weaknesses
Lag: Equal weighting means the SMA reacts slowly to price changes. The longer the period, the more lag. A 200-period SMA will not turn until well after the price has already changed direction.
Abrupt drops: When a large candle exits the window, the SMA can jump even if recent price action is stable. This is because SMA treats the oldest candle and the newest candle identically -- when a large value drops out, the average shifts.
SMA vs EMA
The most common question about SMA is when to use it instead of EMA. There is no universally correct answer -- it depends on what you value:
Choose SMA when you want a stable, widely-watched reference level (especially 50 and 200 periods) or when you want the average to not overreact to recent spikes. Choose EMA when you want faster reaction to price changes and are willing to accept slightly more noise.
Where to Go Next
EMA (Exponential Moving Average) -- the most popular alternative to SMA, with faster reaction to price changes.
Moving Averages Overview -- all 10 moving average types available in Simula.
Trend Following -- strategies built around moving average crossovers.
Entry & Exit Conditions -- how to set up crossover and threshold conditions in Simula.