PC Add moving average to chart

good

This article was : 

published

updated

On MetaTrader4 (MT4) / MetaTrader5 (MT5), you can display Moving Average (MA). MA is one of the most frequently used technical analysis methods. The MA shows a line graph of the average price during a certain period (usually the close price is used) and is used to determine trends. There are several types of MAs including the Simple Moving Average (SMA) as well as the Exponential Moving Average (EMA), which is used when you want to focus on the most recent price.

Here we will look at how to add MA to charts on MT4/MT5.

Switch between MT4/MT5 tabs to check the steps for each.

mt4
mt5

Step 1

You can add MA from the menu and the Navigator.

Add MA from the menu

Click "Insert" in the menu. Hover the pointer over "Indicators" > "Trend" and select "Moving Average".

Moving Average settings Moving Average settings

Add MA from the Navigator

On the Navigator, click on the "+" sign next to "Indicators" and then "Trend". Select "Moving Average" and drag it onto the chart you wish to apply it to.

Drag the Moving Average from the Navigator onto the chart Drag the Moving Average from the Navigator onto the chart

Or, right-click on "Moving Average" and select "Attach to a chart".

Right-click on Moving Average in the Navigator Right-click on Moving Average in the Navigator

Step 2

The setting window for MA will appear. Set the parameters in the "Parameters", "Levels", and "Visualization" tab and click "OK".

"Parameters" tab

Parameters tab for MA Parameters tab for MA

Number

Item name

Descriptions

1

Period

Set the period for the MA. The unit here is the number of candlesticks. If you select the daily chart and set it to "20", the MA for the past 20 days will be generated.

2

Shift

You can shift the placement of the MA to the left or right. The unit is the number of candles. Type a positive value to move it to the right, and a negative value to move it to the left.

3

MA method

Select the type of moving average to display.

Simple: simple moving average (SMA)

Exponential: exponential moving average (EMA)

Smoothed: smoothed moving average (SMMA)

Linear Weighted: linear weighted moving average (LWMA)

4

Apply to

Price to use for calculating MA.

Close: close price

Open: open price

High: high price

Low: low price

Median Price (HL/2): (high price + low price) ÷2

Typical Price (HLC/3): (high price + low price + close price) ÷3

Weighted Close (HLCC/4): (high price + low price + close price×2) ÷4

Previous Indicator's Data: the price data applied to the previous indicator

First Indicator's Data: the price data applied to the first indicator

5

Style

Set the color, line type, and line thickness for MA.

knowledge Popularized by Granville

One of the factors that made MA a widely used concept was "Granville's Law". Granville used the MA for 200 days and grouped the data into 8 different patterns. This is where the idea of the 200-Day MA comes from. To plot the 200-day MA line, set the period to "200" for a 1-day chart. When using other timeframes, adjust the period accordingly.

"Levels" tab

Go to the "Levels" tab and click "Add". Enter a positive number (unit: points) to show a new MA on top, and a negative number to show a new MA on the bottom of the current MA.

Levels tab for MA Levels tab for MA

"Visualization" tab

On the "Visualization" tab, you can show/hide MA in the Data Window and specify the timeframes to use MA with.

Visualization tab for MA Visualization tab for MA

Step 3

MA will be displayed on the chart.

MA is displayed MA is displayed
knowledge Golden cross and death cross

MA is classified into short/medium/long term and they're often used together. When the short-term MA crosses the long-term MA from the bottom up, it's called the "golden cross" which indicates a bull market. And when the short-term MA crosses the long-term MA from top to bottom, it's referred to as the "death cross", which indicates a bear market.

Golden cross and death cross Golden cross and death cross 1 Golden cross and death cross 2

Step 1

You can add MA from the menu and the Navigator.

Add MA from the menu

Click "Insert" in the menu. Hover the pointer over "Indicators" > "Trend" and select "Moving Average".

Add MA from the menu Add MA from the menu

Add MA from the Navigator

On the Navigator, go to "Indicators" and click on the "+" sign next to "Trend". Select "Moving Average" and drag it onto the chart you wish to apply it to.

Add MA from the Navigator Add MA from the Navigator

Or, right-click on "Moving Average" and select "Attach to Chart".

Step 1 Step 1

Step 2

The setting window for MA will appear. Set the parameters in the "Parameters", "Levels", and "Visualization" tab and click "OK".

"Parameters" tab

Parameters tab Parameters tab

Number

Item name

Descriptions

1

Period

Set the period for the MA. The unit here is the number of candlesticks. If you select the daily chart and set it to "20", the MA for the past 20 days will be generated.

2

Shift

You can shift the placement of the MA to the left or right. The unit is the number of candles. Type a positive value to move it to the right, and a negative value to move it to the left.

3

Method

Select the type of moving average to display.

Simple: simple moving average (SMA)

Exponential: exponential moving average (EMA)

Smoothed: smoothed moving average (SMMA)

Linear Weighted: linear weighted moving average (LWMA)

4

Apply to

Price to use for calculating MA.

Close: close price

Open: open price

High: high price

Low: low price

Median Price (HL/2): (high price + low price) ÷2

Typical Price (HLC/3): (high price + low price + close price) ÷3

Weighted Close (HLCC/4): (high price + low price + close price×2) ÷4

Previous indicator's data: the price data applied to the previous indicator

First indicator's data: the price data applied to the first indicator

5

Style

Set the color, line type, and line thickness for MA.

knowledge Popularized by Granville

One of the factors that made MA a widely used concept was "Granville's Law". Granville used the MA for 200 days and grouped the data into 8 different patterns. This is where the idea of the 200-Day MA comes from. To plot the 200-day MA line, set the period to "200" for a 1-day chart. When using other timeframes, adjust the period accordingly.

"Levels" tab

Go to the "Levels" tab and click "Add". Enter a positive number (unit: points) to show a new MA on top, and a negative number to show a new MA on the bottom of the current MA.

Levels tab Levels tab

"Visualization" tab

On the "Visualization" tab, you can show/hide MA in the Data Window and specify the timeframes to use MA with.

Visualization tab Visualization tab

Step 3

MA will be displayed on the chart.

Step 3 Step 3
knowledge Golden cross and death cross

MA is classified into short/medium/long term and they're often used together. When the short-term MA crosses the long-term MA from the bottom up, it's called the "golden cross" which indicates a bull market. And when the short-term MA crosses the long-term MA from top to bottom, it's referred to as the "death cross", which indicates a bear market.

Golden cross and death cross Golden cross and death cross 1 Golden cross and death cross 2

Was this article helpful?

thumb_down No
thumb_down Yes

0 out of 0 people found this article helpful.

Thank you for your feedback.

Send