Moving Average Settings in MetaTrader; Complete Tutorial and Differences Between MT4 and MT5

Moving Average Settings in MetaTrader; Complete Tutorial and Differences Between MT4 and MT5

Moving Average settings in MetaTrader help the trader to more easily identify market trends and filter out false fluctuations. The time period, Shift and Moving Average type are the most important settings for this indicator; SMA is more relaxed for long-term trends, and EMA reacts more sensitively to rapid price changes. In MT5, due to more timeframes, faster processing and more complete analytical tools, the use of Moving Averages for testing and implementing strategies is more accurate.

A group of financial market experts and analysts

MetaGold Logo

Moving Average settings in MetaTrader include the period, moving average type (SMA or EMA), Shift, and display settings. Choosing the right configuration depends on your trading style. EMA is commonly used for faster responses to price changes, while SMA is better suited for analyzing smoother, more gradual trends.

In this article, we first explore how the Moving Average indicator helps identify market direction and filter out false price fluctuations. We then explain how to access this indicator in MetaTrader, configure its main settings, and compare how Moving Averages work in MetaTrader 4 and MetaTrader 5. Finally, we examine when SMA is more suitable for identifying long-term trends and when EMA may be more effective for scalping, day trading, and responding quickly to price movements.

List

How to Use the Moving Average Indicator in MetaTrader to Determine Market Direction?

Fortunately, the moving average, or average line, is built into the core of the MT4 and MT5 platforms by default, and you do not need to download it separately to access its standard version.

To activate it, simply follow the path Insert → Indicators → Trend → Moving Average from the top menu of the software. Another faster method is to use the Navigator panel; by clicking on the “+” sign next to the Indicators option and entering the Trend section, you can select the Moving Average option and easily drag it onto the chart (Drag and Drop). The settings window that opens consists of three main tabs: Parameters, Levels, and Visualization.

In the Parameters tab, the Period section specifies the number of candles on which the calculations are based, and the Shift section is used to move the line forward or backward. Traders use short-term (5 or 10), medium-term (20 or 60), and long-term (120 or 200) periods based on their strategy.

The most important part is setting the type of moving average (MA Method); the simple moving average (SMA) gives equal weight to all days and is ideal for long-term trends, while the exponential moving average (EMA) and weighted moving average (WMA) are more sensitive to sudden market changes by focusing more on recent prices and are popular with scalpers and short-term traders. If you want to learn more about the mathematical behavior and logic of this tool before implementing it, reviewing the article What is a Moving Average will give you a more comprehensive view.

Step-by-step guide to Moving Average settings in MetaTrader 4, showing the Navigator window, indicator list, and parameters including Period, Shift, and MA Method.

 

What is the Difference Between Moving Average Settings in MetaTrader 4 and 5?

MetaTrader 4 uses the MQL4 programming language, is a 32-bit, single-threaded platform, and its developer, MetaQuotes, has stopped issuing new licenses and updates. In contrast, MetaTrader 5 works with the modern MQL5 language, which optimizes and backtests trading strategies based on moving averages up to 3-5 times faster. In the default version of MetaTrader 4, you have access to 30 built-in indicators, which is enough for standard retail trading strategies.

MetaTrader 5 has expanded this arsenal to include 38 built-in indicators, 44 graphical analysis tools, and 21 trading timeframes (compared to 9 in MT4) to allow for much more accurate tracking of moving averages across multiple time frames. MT5’s flexibility in integrating custom tools also opens up more room for algorithmic and semi-professional traders.

In addition, MetaTrader 5 has powerful additional features such as Depth of Market (DOM), Netting system along with hedging capabilities, and an economic calendar integrated into the terminal itself, which eliminates the need for traders to use external tools for macro analysis; while MetaTrader 4 users are forced to use third-party plugins or resources to access this data.

MetaTrader 4 vs MetaTrader 5 architecture comparison, highlighting 32-bit processing, MQL4 vs MQL5, single-threaded vs multi-threaded operation, and 30 vs 38 built-in indicators.

 

Moving Average Strategy in MetaTrader

The truth is that success with the Moving Average strategy in MetaTrader is not just about drawing two lines on the chart; it is about understanding the mathematics behind each indicator and choosing the optimal time combinations that define the line between a profitable and a losing trade. In general, traders use two main types of moving averages based on their trading style:

  • Simple Moving Average (SMA): This tool gives equal weight to all price data within a specified time frame. If you are looking for a more relaxed and stable approach that focuses on long-term trends and reduces the risk of false signals (whipsaws), the SMA is a good choice.
  • Exponential Moving Average (EMA): This indicator gives more weight to recent market prices and, as a result, reacts much faster to sudden price changes. Traders who need faster entries and exits will turn to the EMA, although they should be prepared to deal with more false signals.

SMA vs EMA comparison showing the Simple Moving Average tracking long-term trends and the Exponential Moving Average responding faster to price changes.

 

Smart Swing Trading with the Double Crossover Strategy

For agile market participants and those looking for day trading opportunities, the combination of the 9 EMA and the 21 EMA works extremely well. Statistical studies on the EUR/USD currency pair on short-term timeframes (such as one hour) show a win rate of around 60% using this combination. In this structure, the trader waits for the faster line to cross the slower line:

  • Buy signal: Issued when the faster moving average (e.g. period 9) crosses the slower line (period 21) from below upwards.
  • Sell ​​signal: Occurs when the faster line crosses the slower line from top to bottom, signaling the start of a downtrend.

For investors with a medium-term view, the 20 SMA and 50 SMA layout on daily charts provides a much clearer and more reliable picture of market structure. Shorter time frames always produce more signals, but their error rate is high.

EMA crossover trading strategy showing buy and sell signals when the 9-period EMA crosses above or below the 21-period EMA.

 

Auxiliary filters to suppress error signals

To reduce the frequency of losing trades in the Moving Average strategy in MetaTrader, it is necessary to apply confirmatory filters. Two key tools for this purpose are:

  • Relative Strength Index (RSI): Combining a momentum filter like RSI with a crossover strategy (e.g. 10/30 SMA crossover) can help filter out some weak signals in ranging markets.
  • Volume: Always monitor market volume at the moment of the lines crossing. The occurrence of volume jumps (so that the trading volume reaches more than 150% of its 20-day average) indicates heavy participation of large traders and confirms the validity of the intersection.

Advanced Triple Crossover Strategy and Automated Experts

In more advanced versions, traders use three moving averages with periods of 20, 50, and 200 to simultaneously identify trend direction, line formation, and entry triggers. This methodology, which is now automated in the form of Expert Advisors in MetaTrader 5, has strict rules:

The price should be above the long-term moving average (200) (confirmation of the macro uptrend). At the same time, the fast line (20) should be above the medium-term line (50), and the medium-term line should be above the slow line (200). The final trigger is activated when a closed candlestick is above all three lines.

These automated systems for dynamic risk control typically use the ATR (Average True Range) indicator to determine dynamic stop-loss limits and adjust the size of each position based on a fixed percentage of capital (e.g. 1%) to protect the trader’s account in the face of sudden market corrections.

Download and install the Moving Average indicator

To start trading and using MetaTrader indicators, users can download MetaTrader 5 with a direct link and easily install it on their system.

The process of installing these tools is very similar in both versions, but the main difference is in the name of the development folder (MQL4 vs. MQL5) and the file extensions. A step-by-step guide to this action is as follows:

  1. First, download and prepare your custom indicator file.
  2. Open the MetaTrader software (MT4 or MT5) and click on File from the top menu and then Open Data Folder to open the software’s root window in Windows.
  3. If you are using MetaTrader 4, go to the MQL4 folder and then Indicators. If you are using MetaTrader 5, follow the path to the MQL5 folder and then Indicators. Downloading the Moving Average indicator for MetaTrader 4 is the same as downloading the Moving Average indicator for MetaTrader 5 for both versions.
  4. Paste the downloaded file into this section. If your tool is provided as an archive, copy all its contents directly into the MQL4 or MQL5 directory.
  5. To apply the changes, close the software once and reopen it; or in the MetaTrader Navigator window, right-click on the Indicators section and select the Refresh option.

After completing these steps, to drop the tool onto the chart, simply go to the Insert → Indicators menu and find the name of your new indicator in the list of custom tools and activate it.

 

 

Important Tips for Using Moving Average

Choosing the right moving average settings directly depends on your trading style and the cycle you are trying to catch. Professional traders usually use simple moving averages (SMA) to understand the big picture of the market, and exponential moving averages (EMA) for agile and tactical entries, to create a reasonable balance between reaction speed and signal reliability. The table below categorizes the most useful moving average period combinations based on analytical goals and different trading styles:

Moving Average TypeCommon PeriodsSuitable Trading StylePrimary Analytical Purpose and Application
Exponential (EMA)5 and 10Scalping and Intraday TradingResponding quickly to sudden price movements on very short timeframes
Exponential (EMA)9 and 21Day TradingTracking momentum, identifying timely entry opportunities, and generating dual moving average crossover signals
Simple (SMA)20 and 50Swing TradingFiltering out short-term price fluctuations and identifying medium-term trends on daily charts
Simple (SMA)120 and 200Long-Term Investing and Position TradingDetermining bullish or bearish market bias and identifying key support levels

Following professional tips in the Moving Average settings in MetaTrader can make a significant difference in the quality of the signals received. The Moving Average indicator in MetaTrader alone is not enough and must be combined with other tools.

Conclusion: Moving Average Settings in MetaTrader

The moving average indicator is a compass for price movement in financial markets; however, its effectiveness depends entirely on how smart you are in applying the moving average settings in MetaTrader. Choosing the right SMA or EMA model, aligning the periods with your trading goals, and using confirmation filters such as volume and RSI will minimize the risk of your positions. To get started and test these tools in a safe environment, you can read the step-by-step guide on the site to learn how to open an account and register with a broker.

FAQ About Moving Average Settings in MetaTrader
How Do You Add the Moving Average Indicator to a MetaTrader Chart?
To add the Moving Average indicator, navigate to Insert → Indicators → Trend → Moving Average from the top menu, or simply drag the indicator from the Navigator panel onto your chart.
The Simple Moving Average (SMA) assigns equal weight to all prices within the calculation period, while the Exponential Moving Average (EMA) gives greater weight to recent prices, allowing it to respond more quickly to market changes.
Combining the 9-period and 21-period Exponential Moving Averages (EMAs) is one of the most popular approaches among day traders due to their responsiveness and ability to identify short-term price momentum.
Moving Averages are lagging indicators, meaning they react to price movements after they occur. In sideways or range-bound markets, they can generate false signals and frequent whipsaws. Therefore, combining Moving Averages with other tools, such as the Relative Strength Index (RSI) or trading volume, can help improve signal reliability.
The overall installation process is very similar. However, MetaTrader 4 indicator files with the .ex4 extension must be placed in the MQL4 directory, while MetaTrader 5 indicator files with the .ex5 extension must be placed in the MQL5 directory.

Academy Section Writer

MetaGold Logo

At MetaGold, we don’t just talk about the market, we shape its future. Combining professional experience and expert research, MetaGold’s content team delivers financial knowledge in clear, actionable language so every trader can take one step closer to global success.

Academy Section Writer

MetaGold Logo

At MetaGold, we don’t just talk about the market, we shape its future. Combining professional experience and expert research, MetaGold’s content team delivers financial knowledge in clear, actionable language so every trader can take one step closer to global success.

Leave a Reply

Your email address will not be published. Required fields are marked *

Stay informed with market analysis, trading tips and expert opinions.

Keep your information up to date with market analysis, trading tips and expert opinions.

Our other content
MetaTrader 5 trading chart showing a Take Profit (TP) level, rising EURUSD candlesticks, and trading indicators with MetaGold branding.
Comprehensive tutorial on the TP tool in MetaTrader 5: Guide to setting and managing take profit limits
Moving Average settings in MetaTrader 4 and 5, illustrated with a trading chart, candlestick patterns, and a Moving Average line.
Moving Average Settings in MetaTrader; Complete Tutorial and Differences Between MT4 and MT5