Indicators
Moving Averages Explained: SMA, EMA, WMA, RMA
How simple, exponential, weighted, and smoothed moving averages differ, when to use each, and how to build a moving-average strategy in Setup.Cash.
Featured image placeholder
/og/setup-cash-og.svg
The moving average is the foundation of trend trading. It smooths price into a single line so you can see direction without the noise. Setup.Cash's Moving Average indicator supports four types — SMA, EMA, WMA, and RMA — and this guide explains when to use each.
The Four Types
- SMA (Simple): the plain average of the last N closes. Smooth and stable, but slow to react.
- EMA (Exponential): weights recent prices more, so it reacts faster to new moves. The most popular for active trading.
- WMA (Weighted): linearly weights recent prices; reacts faster than SMA, smoother than EMA.
- RMA (Smoothed): a slower exponential variant used inside indicators like RSI and ATR.
The trade-off is always the same: faster averages react sooner but whipsaw more; slower averages are steadier but lag.
How to Use a Moving Average
1. Trend direction. Price above a rising MA is bullish; below a falling MA is bearish. A 200-period MA is a classic long-term trend filter.
2. Crossovers. A fast MA crossing above a slow MA (e.g., EMA 20 over EMA 50) signals a possible uptrend; the reverse signals a downtrend. This is the building block of countless strategies.
3. Dynamic support/resistance. In trends, price often pulls back to a key MA before continuing.
Building an MA Strategy in Setup.Cash
In the builder, add a Moving Average indicator, pick the type and length, and create a condition — for example, a crossover of two EMAs. Or describe it to text-to-strategy: "EMA 20/50 crossover on EURUSD 1h with ATR stop and 2R target."
Pair MA crossovers with a higher-timeframe trend filter to avoid taking crosses against the bigger trend.
Choosing Lengths
- Fast (9–21): responsive, for short-term setups.
- Medium (50): the standard swing-trend line.
- Slow (100–200): long-term trend filter.
There is no perfect length — backtest a few combinations across multiple periods and favor the one with a smoother equity curve, not just the highest return.
Build a Custom MA
In the Indicators Lab you can build custom average-based indicators — for example, a double-smoothed average or an adaptive MA. Use the ema, sma, wma, and rma functions in the formula language, or generate one with AI.
Moving averages lag by design — they confirm trends rather than predict them. That is exactly why they are reliable filters. Combine them with momentum and disciplined risk, and always validate with backtesting before going live.
Related Posts
View allIndicators
Ichimoku Cloud Explained for Automated Trading
Understand the five Ichimoku lines, how the cloud (Kumo) defines trend and support/resistance, and how to automate Ichimoku signals in Setup.Cash.
2 min read · 381 words
Indicators
MACD Indicator Explained for Automated Trading
How the MACD (Moving Average Convergence Divergence) works, what the signal line and histogram tell you, and how to build a MACD strategy in Setup.Cash.
2 min read · 336 words
Indicators
Supertrend Indicator Explained: A Trend-Following Trailing Stop
How the Supertrend indicator uses ATR to flip between bullish and bearish, why it doubles as a trailing stop, and how to automate it in Setup.Cash.
2 min read · 382 words
Indicators
ADX and DI Explained: Measuring Trend Strength
How the Average Directional Index measures trend strength, how +DI and −DI show direction, and how to use ADX as a regime filter in Setup.Cash.
2 min read · 291 words
Start here
Build your trading bot workflow with structure
Use Setup.Cash to create, backtest, and paper trade rule-based strategies without relying on guesswork. Not financial advice. Trading involves risk.