Moving average

What is Moving average in forex and CFD trading

A Moving average (MA) is a technical indicator that calculates the average price of an asset over a specified number of periods, smoothing out price fluctuations to identify the direction of the underlying trend. The Moving average matters for real trading decisions because it serves as a dynamic support or resistance level, generating objective buy and sell signals, and confirming the market’s long-term bias. A trader verifies a Moving average by applying the indicator to a price chart, often using common lookback periods like 20, 50, or 200, and observing the slope of the Moving average line to determine trend momentum. Explore other related concepts in this glossary.

Key facts about Moving average

  • Definition: A trend-following, lagging technical indicator based on past price data, used to filter out market noise.
  • Types: The most common types are the Simple Moving Average (SMA), which weights all prices equally, and the Exponential Moving Average (EMA), which gives more weight to recent prices.
  • Primary Function: Identifies the current trend direction (upward or downward slope) and provides dynamic support and resistance.
  • Calculation for SMA: The price is averaged over the period N: SMA = (Σ P_i) / N where P_i is the closing price of period i and N is the number of periods.
  • Typical Periods: Short-term traders use 9-20 periods; medium-term traders use 50 periods; long-term traders use 100 or 200 periods.
  • Trading Signal: A buy signal is generated when the price crosses above the Moving average; a sell signal occurs when the price crosses below the line.
  • Lagging Nature: The Moving average is a historical calculation and inherently lags the current price action, which must be considered during high-volatility events.

How Moving average works in forex and CFD trading

The Moving average works by creating a continuous, single-line plot that represents the average value of a currency pair or CFD over a set time window, helping to define the market consensus.

The process involves these sequential steps:

  1. Select Period N: A trader chooses a lookback period (e.g., 50) and a data type (e.g., closing price) for the calculation.
  2. Calculate Average: For an SMA, the platform sums the closing prices of the last N candles and divides the sum by N.
  3. Plot Point: The resulting average value is plotted as a single point on the current candle’s period.
  4. Shift and Repeat: For the next candle, the oldest price is dropped from the calculation, and the newest closing price is added, making the average “move” along with the price.
  5. Trend Confirmation: When the resulting line slopes upward, it confirms an uptrend; when it slopes downward, it confirms a downtrend, providing a smoothed baseline for the trend.
  6. Signal Generation: The line acts as a filter; trades are only taken in the direction of the Moving average’s slope, or when a faster MA crosses a slower MA (Crossover).

Example of Moving average with a real trade

This example demonstrates using a single 200-period Moving average (MA) to determine the long-term trend bias for a long entry on EUR/USD.

Instrument: EUR/USD on the H4 chart Indicator Used: 200-period Simple Moving Average Trend Condition: Price is trading consistently above the 200 MA, and the 200 MA is sloping upwards (Bullish Trend Confirmed). Entry Signal: Price pulls back and touches the 200 MA at 1.10250. Entry: Buy Limit Order placed at 1.10250. Stop-Loss: 1.09950 (Placed 30 pips below the 200 MA). Position size: 1 standard lot (100,000 units).

Trade Calculation (Hypothetical successful long entry): The price touches the 200 MA and executes the Buy Limit order at 1.10250. The price subsequently rallies to 1.11250, where the trader exits. Gross Profit (Pip Gain): 1.11250 – 1.10250 = 100 pips. Spread Cost: 0.2 pips × $10/pip = $2.00 Commission: $0.00 (zero commission structure) Net PnL: (100 pips × $10/pip × 1 lot) – $2.00 = $998.00

Result: $998.00 net profit. The Moving average provided a low-risk entry point in the direction of the long-term trend. Zero commission structure maximizes profitability by eliminating per-trade commission fees.

How Moving average affects your cost and risk

The Moving average is used primarily for strategic entry and exit placement, defining risk by establishing objective stop-loss areas and affecting the potential reward through trend confirmation.

Moving average compared with related concepts

Moving average vs Bollinger Bands

The Moving average is a single line designed to show the smoothed, average price trend and act as dynamic support/resistance. Bollinger Bands, in contrast, are composed of a central Moving average and two standard deviation bands surrounding it, quantifying price volatility and determining when an asset is temporarily overbought or oversold relative to its average price. Moving averages define the trend; Bollinger Bands measure the deviation from it.

Moving average vs Relative Strength Index (RSI)

The Moving average is a trend-following indicator calculated solely based on price, plotted directly on the price chart, and used for trend direction and support/resistance identification. The Relative Strength Index (RSI) is an oscillator that measures the speed and change of price movements, plotted in a separate window, used for determining momentum and overbought/oversold conditions. The Moving average is a direct price derivative, whereas the RSI is a momentum derivative.

Broker differences in Moving average across the industry

Brokers primarily differ in the available types and customization of the Moving average indicator, which affects a trader’s analytical flexibility.

How to verify Moving average on your trading platform

Adding and verifying a Moving average is the standard procedure for trend analysis on most trading platforms.

  1. Open Indicator List: In MetaTrader 4 (MT4), navigate to ‘Insert’ > ‘Indicators’ > ‘Trend’.
  2. Select MA Type: Choose the desired Moving Average (e.g., Moving Average).
  3. Set Parameters: In the indicator settings dialog box, set the ‘Period’ (e.g., 50), the ‘MA method’ (e.g., Exponential), and ‘Apply to’ (e.g., Close price).
  4. Confirm Display: Ensure the line is plotted on the main price chart; it should track the price action but in a smoother curve.
  5. Change Timeframe: Switch the chart timeframe (e.g., from H1 to D1) and observe how the Moving average changes its smoothing effect.
  6. Analyze Slope: Determine the trend bias by observing the slope of the line: Upward slope is bullish; downward slope is bearish.
  7. Sanity check: The Moving average line must appear smooth and lag the current price action; if it tracks the price too closely, the period is too short.

Related Tools

Use these calculators to apply what you've learned:

No Fine Print. Better Trading Economics.

Built on transparency. Lowest total trading costs.
Execution you can measure. Rewards shared with you.

Invite only access for approved trading profiles.