MT5 101: Add Indicators and Draw Lines on an MT5 Chart

Beginner6 min read
A worn wooden set square, a triangle ruler for drawing straight lines, on a white surface
Image by Czeva on Wikimedia Commons, CC BY-SA 4.0

How Do You Add an Indicator and Draw Lines in MT5?

Open Insert, then Indicators, then Trend, and choose Moving Average to add an indicator. To draw a line, pick it from the Insert menu or the Line Studies toolbar and click the chart. By the end of this lesson you will have a 50 and a 200 moving average on your chart plus a horizontal line at yesterday’s high.

What you need: MT5 connected to a demo account, and a chart you can change, which the lesson on charts and timeframes covers. If you have not installed MT5 yet, start with installing MT5 and opening a demo account. Nothing here involves a trade.

Step 1: Add a 50-Period Moving Average

An indicator is a calculation drawn on the chart from past prices. A moving average (MA) is the average closing price of the last set number of bars, redrawn as each bar closes. The moving averages guide explains how traders read it.

MT5 with Adaptive Moving Average selected under Indicators, Trend in the Navigator and an arrow showing it dragged onto a EURUSD chart
Dragging an indicator from the Navigator onto a chart, the second route in Step 1. The help shows Adaptive Moving Average; Moving Average sits further down the same Trend list. Image: MetaQuotes Ltd, via MetaTrader 5 Help. MetaTrader is a registered trademark of MetaQuotes Ltd
  • Step 1, open the menu: click Insert, then Indicators, then Trend, then Moving Average. You can also drag Moving Average from Indicators in the Navigator onto the chart.
  • Step 2, set the period: a settings window opens. Type 50 as the period. Leave the method on its default (Simple) for now.
  • Step 3, choose what it averages: the Apply to field sets which price the average uses. Close is the usual choice.
  • Step 4, click OK: a line appears on the price chart and follows the candles.

Step 2: Add the 200-Period Moving Average

  • Repeat the same path: Insert, Indicators, Trend, Moving Average.
  • Type 200 as the period: keep the same method and Apply to as before, so the two lines are comparable, then click OK.
  • Tell them apart: both lines look alike at first. Press Ctrl+I to open the Indicator List, select one, and open its properties to change its settings, including the look of the line.
  • Read the picture: the 50 reacts faster, the 200 is slower. Price above both is one picture, below both another. Neither line predicts anything on its own.

Step 3: Manage and Remove Indicators

  • Open the list: Ctrl+I shows every indicator on the active chart.
  • Edit: choose an indicator and open its properties. The tabs are Parameters, Levels, Scale and Visualization. Visualization controls which timeframes show it.
  • Delete: choose the indicator in the list and click Delete. An indicator that opens in its own sub-window, such as RSI, is removed with a right-click inside that window and Delete Indicator Window.
  • Indicator on indicator: add a second indicator and set Apply to as Previous Indicator’s Data, and it is calculated from the first one instead of from price.
MT5 Indicators on EURUSD,M1 window listing Adaptive Moving Average on the main chart and Average Directional Movement Index in indicator window 1, with Properties, Delete and Close buttons
The list that Ctrl+I opens. Select an indicator, then Properties to edit it or Delete to remove it; each indicator window is listed on its own. Image: MetaQuotes Ltd, via MetaTrader 5 Help

Step 4: Draw a Horizontal Line at Yesterday’s High

Yesterday’s high is the highest price reached in the previous day. Many traders mark it because price often reacts around such levels; support and resistance explains why.

A price chart with a red horizontal line drawn across it and its price marked in red on the right-hand scale
A horizontal line placed with one click. Its price shows on the scale, and you can drag the line until it touches the top of yesterday’s candle. Image: MetaQuotes Ltd, via MetaTrader 5 Help
  • Step 1, find the day: switch to the D1 timeframe on the Periodicity toolbar. The last full candle before the current one is yesterday. Its top wick is the high. You can switch back afterwards; the line stays on the chart.
  • Step 2, pick the tool: open the Insert menu or the Line Studies toolbar and choose the horizontal line.
  • Step 3, click once: a horizontal line is a one-point object, so one click places it. Click at the top of yesterday’s candle.
  • Step 4, snap to the exact price: in Tools, then Options, on the Charts tab, the magnet sensitivity setting snaps anchor points to the open, high, low or close of a bar. Set to 0, it is switched off.
  • Step 5, check it: the line should touch the very top of that wick. If not, drag it.

Step 5: Select, Move, Copy and Delete Objects

  • Select: by default, double-click an object. A single click can be enabled with the select-by-single-click option on the Charts tab of Options.
  • Move: drag its central marker. Dragging an end marker changes the drawing itself, which matters for a trend line.
  • Copy: hold Ctrl and drag the central marker.
  • Delete and undo: Backspace removes objects one by one, newest first, and Ctrl+Z restores a deleted object.
  • List them all: Ctrl+B opens the Object List, where you can select an object and click Edit, or right-click an object and choose Properties.

A trend line works the same way, except you click, drag and release. The trend lines and channels guide shows where to place one.

The Four Indicator Families

MT5 ships 38 built-in indicators in four groups. Trend indicators, such as Moving Average, Bollinger Bands and Ichimoku, show direction. Oscillators, such as RSI, MACD and Stochastic, sit in their own sub-window and show momentum; see the RSI guide. Volumes and Bill Williams indicators are the other two groups. A beginner can stay with one trend indicator and one oscillator, because more lines usually add noise.

Chart reading in general is covered in how to read a forex chart. If you use TradingView too, the moving average scripts in the Pine Script Library are TradingView versions and do not run in MT5. Brokers differ in symbols and data history, and the broker comparison shows which offer MT5.

If Something Goes Wrong

  • “I cannot select the line”: selection needs a double-click by default. Double-click it, or enable single-click selection in Options.
  • “The line jumped to the wrong price”: the magnet snapped it to a nearby open, high, low or close. Lower the magnet sensitivity or set it to 0.
  • “The moving average is missing”: press Ctrl+I and check it is listed for this chart. Indicators belong to one chart, not all.
  • “The 200 line is short or absent”: the chart needs at least 200 bars of history. Scroll left so the terminal can load more.
  • “I deleted the wrong object”: press Ctrl+Z.

What You Just Learned

  • Insert, Indicators, Trend, Moving Average adds an indicator, and the period decides how fast it reacts.
  • Ctrl+I lists, edits and deletes the indicators on a chart.
  • A horizontal line is one click; a trend line is click, drag, release.
  • Objects are moved by the central marker, copied with Ctrl, and removed with Backspace.

The next lesson, placing your first trade in MT5, opens a small demo position with a stop-loss and take-profit. Leveraged trading in forex and CFDs carries a high risk of losing money, so practise everything here on a demo account first.

FAQ

How do I add a moving average in MT5?

Click Insert, then Indicators, then Trend, then Moving Average. Type the period, such as 50 or 200, choose the method and the price it applies to, and click OK. You can also drag Moving Average from the Navigator onto the chart. Repeat the steps with a different period to add a second line.

How do I remove an indicator from an MT5 chart?

Press Ctrl+I to open the Indicator List, select the indicator and click Delete. If the indicator sits in its own sub-window, such as RSI, right-click inside that window and choose Delete Indicator Window. Deleting an indicator on one chart does not change other charts.

Why can I not select a line I drew in MT5?

By default MT5 selects objects with a double-click, not a single click. Double-click the line to select it, then drag its central marker to move it. You can switch to single-click selection in Tools, Options, on the Charts tab. Ctrl+B opens a list of every object on the chart.

What does the magnet setting do in MT5?

Magnet sensitivity, found on the Charts tab of Options, snaps the anchor points of an object to the open, high, low or close of a nearby bar. It helps place a line exactly on a high or low. A value of 0 switches the magnet off, so the line stays where you click.

Related on ForexR

Next lesson MT5 101: Place, Modify and Close Your First Trade (F9) Continue

More Beginner Guides

What Is Forex Trading? A Beginner's Guide to the FX Market How to Start Forex Trading: A Step-by-Step Beginner Guide Currency Pairs Explained: Majors, Minors & Exotics Best Currency Pairs to Trade for Beginners: Where to Start Forex Trading Terms: A Plain-English Glossary for Beginners Going Long vs Going Short in Forex: Buy and Sell Explained Forex Spreads and Pips: What They Cost You Forex Lot Sizes and Order Types Explained for Beginners Leverage and Margin in Forex: A Beginner's Guide Margin Call and Stop Out in Forex: How They Work What Is Swap in Forex? Overnight Fees Explained Simply How Much Money Do You Need to Start Forex Trading? How to Choose a Forex Broker: Regulation, Costs & Checklist How Forex Brokers Make Money: Spreads, Swaps, IBs and B-Books Forex Rebates and Cashback Explained: Who Pays and What You Get Is Forex Trading Legal? How Forex Regulation Works Worldwide Forex Demo Account: How to Practise Trading Properly MT4 vs MT5: Key Differences and Which One to Choose How to Use MT4 and MT5: MetaTrader Tutorial for Beginners MT5 101: Install MetaTrader 5 and Open a Demo Account MT5 101: Market Watch, Navigator, Chart and Toolbox Explained MT5 101: Open a Chart, Change Timeframe and Save a Template MT5 101: Place, Modify and Close Your First Trade (F9) MT5 101: Pending Orders in MT5, Limit, Stop and Stop Limit MT5 101: One-Click Trading and Managing Trades on the Chart MT5 101: Alerts, Push Notifications and Key MT5 Settings MT5 Mobile 101: Install the App and Log In on Android or iPhone MT5 Mobile 101: Build Your Watchlist in the Quotes Tab MT5 Mobile 101: Charts, Timeframes, Indicators and the Ruler MT5 Mobile 101: Place, Modify and Close a Trade on Your Phone MT5 Mobile 101: Push Notifications, Messages and Settings MT5 Mobile vs Desktop: What the Phone App Cannot Do Types of Expert Advisors: Robots, Trade Managers, Copiers & More How to Use the ForexR EA Library: Find, Check & Download EAs How to Install an Expert Advisor in MT4 and MT5 (Step by Step) What Is Pine Script? TradingView's Chart Language Explained How to Use the ForexR Pine Script Library: Find & Copy Scripts How to Add a Pine Script to TradingView: Copy, Paste & Run Pine Script v4, v5 and v6: What the Version Line Means Pine Script vs MQL5: TradingView or MetaTrader for Trading? How to Read a Forex Chart: Candlesticks & Trends Forex Trading Sessions: Hours and Best Times Best Time to Trade Forex: Best Hours, Days and Sessions How to Use an Economic Calendar for Forex How to Use Forex Market Analysis and News to Trade Forex vs Stocks: Which Is Better for Beginners to Trade? Forex vs Crypto Trading: Key Differences and Which Suits You How to Trade Gold (XAU/USD): A Beginner’s Six-Step Guide Why Does Gold Have Value? A Plain-English History of Money What Moves the Gold Price? 7 Drivers Explained in Plain English Physical Gold vs Gold CFDs, ETFs and Futures: 10 Ways to Own Gold Gold Lot Size, Pip Value and Margin Explained (XAU/USD) Best Time to Trade Gold: Sessions, Hours and the Daily Break Gold Spread, Swap Fees and Weekend Gaps: What Gold Costs Troy Ounces, Grams and Karats: How Gold Is Priced and Weighed Gold Trading Glossary: 40 Terms Explained in Plain English How to Read a Gold Price Forecast (and Why They Miss) 10 Gold Trading Mistakes That Empty Small Accounts Fast What Is Copy Trading in Forex? How It Works and What It Costs Forex Signals Explained: How They Work and How to Judge Them How to Trade Forex Signals: Step by Step With ForexR Signals How to Copy a Trade Signal Into MT5, cTrader or TradingView What Is AI Trading? A Plain-English Guide for Beginners AI Trading vs Algorithmic Trading: The Real Difference How to Use AI Chatbots for Trading Research Safely Forex Scams: How to Spot Them and Keep Your Money Safe AI Trading Scams: How to Spot Fake Bots and Deepfakes 12 Common Forex Trading Mistakes and How to Fix Them Is Forex Trading Profitable? What the Numbers Say Is Forex Trading Halal or Haram? A Neutral Explainer Is Gold Trading Halal? Spot, CFDs and Swap-Free Accounts Zakat on Gold, Crypto and Trading Accounts: A Simple Guide

Choose a Regulated Broker

Put what you’ve learned to work with a regulated broker. Compare costs, platforms and licences side by side.

Compare top brokers