Best Moving Average Settings for MT4 by Timeframe (2026)

Key takeaways
- The MT4 moving average dialog has four fields. Two of them decide almost everything, and one of the two is the one most traders never touch.
- On 16,926 EURUSD 5-minute bars, the period setting moved results by 9 percentage points while the MA method moved them by under 2 in most pairs.
- Recommended by timeframe, from my own measurements: M5 and M15 use EMA 50 and 200. Faster settings lost money in every configuration tested.
- The Apply to field defaults to Close and should stay there. Changing it to Median or Typical price is a silent way to make your backtest disagree with your chart.
The best moving average settings for MT4 on EURUSD depend far more on the period than on the method: across eight tested configurations the period spread results by 9 percentage points while EMA against SMA moved them by under 2. On the 5-minute chart only EMA 50 and 200 finished profitable, at 51.1% and +2.31 pips per trade.
What do the four MT4 fields actually control?

| Field | What it does | How much it matters |
|---|---|---|
| Period | How many bars the average covers | The whole game. 9 point spread in my test |
| MA Method | Simple, Exponential, Smoothed or Linear Weighted | Matters only at 50 periods and above |
| Apply to | Which price feeds the average: Close, Open, High, Low, Median, Typical, Weighted | Leave on Close. Changing it breaks comparability |
| Shift | Moves the drawn line forward or back in time | Cosmetic. A positive shift makes backtests look better than reality |
The Shift trap. Setting Shift to a positive number slides the line to the right so it appears to predict price. It does not. It is the same line drawn later. If a strategy only works with a positive shift, it does not work.
What settings should you use by timeframe?

These come from measurement on EURUSD, not from convention. The M5 row is directly tested in my crossover test; the slower rows follow the same logic of using enough bars for the average to mean something.
| Timeframe | Pair | Method | Why |
|---|---|---|---|
| M5 | 50 / 200 | EMA | The only profitable pair tested: 51.1%, +2.31 pips |
| M15 | 50 / 200 | EMA | Same structure, four times fewer signals, less spread paid |
| H1 | 20 / 50 | EMA | 50 bars on H1 is already two days of context |
| H4 and D1 | 20 / 50 | SMA or EMA | Difference between methods is negligible at this scale |
How do you set this up in MT4 and MT5?
- Open the chart, then Insert, Indicators, Trend, Moving Average. The path is identical in MT5, and the general routine is in my guide to adding indicators to MT5.
- Set Period to 50, MA Method to Exponential, Apply to to Close, Shift to 0. Give it a colour you can read.
- Repeat for Period 200 in a second, dimmer colour. You now have the pair.
- Right click the chart, Template, Save Template, and name it. Applying it to a new chart is then one click instead of eight fields.
- If the indicator does not appear at all, the install path is usually the cause and my MT4 install guide walks through it.
Which settings should you avoid?
- 9/21 and 12/26 on M5. Both lost money in my test, between 0.26 and 1.11 pips per trade, and they trade four times more often than 50/200.
- Any positive Shift. It moves the line, not the information.
- Apply to Median or Typical unless you have a specific reason. Every published result, including mine, uses Close, so anything else makes your chart incomparable to everyone else’s.
- Three or four averages at once. They are all measuring the same thing at different lags, which is not confluence.
Should you add a filter on top?
Not another moving average. In my crossover test, filtering EMA 12/26 signals by an EMA 200 trend filter made results worse, dropping the win rate from 44.6% to 41.2%. A crossover is already a trend signal, so filtering it by trend removes the early entries where its edge lives. That is the opposite of what happens with an oscillator: filtering Stochastic signals by the same 200 average turned a losing setup positive, because an oscillator has no view on direction and the filter gave it one.
Frequently Asked Questions
What is the best moving average setting for a 5-minute chart?
EMA 50 and 200. It was the only pair of eight that finished profitable on 16,926 EURUSD 5-minute bars: 51.1% win rate, +2.31 pips per trade over 88 signals.
Is the 200 EMA useful on its own?
As a direction filter for oscillator setups, yes, and measurably so. As an entry trigger by itself, no. It tells you which side of the market you are on, which is a different job from telling you when to act.
What does the Shift setting do?
It moves the drawn line forward or backward in time without changing any calculation. A positive shift can make a backtest look predictive when it is not. Leave it at zero.
Should Apply to ever be changed from Close?
Rarely, and only if you are deliberately reproducing a published method that used something else. Otherwise it silently makes your results incomparable with every other result you read, including the numbers on this site.
How many moving averages should be on a chart?
Two, and only if you are trading their relationship. Three or more are three views of the same underlying number at different lags, and stacking them creates the feeling of confirmation without the substance. The same trap appears with Stochastic and RSI together, which agreed on the same bar only 149 times out of thousands.
Want a clean indicator to install right now?
It is my own enhanced DeMARK Trend Line indicator for MetaTrader 4 and 5. Non repaint, clean, and free.

