{"id":22232,"date":"2026-10-21T16:11:31","date_gmt":"2026-10-21T13:11:31","guid":{"rendered":"https:\/\/roboforex.com\/blog\/?p=22232"},"modified":"2026-10-21T16:11:35","modified_gmt":"2026-10-21T13:11:35","slug":"how-to-install-ea-in-mt5","status":"publish","type":"post","link":"https:\/\/roboforex.com\/blog\/education\/how-to-install-ea-in-mt5\/","title":{"rendered":"How to Install an EA in MT5 and Place Your First Automated Trade"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<html><body><div class=\"iea-wrap\">\n<div class=\"iea\">\n\n  <p>How to install an EA in MT5: put the robot into the Navigator window, attach it to a chart, tick Allow Algo Trading in its settings and switch on the Algo Trading button. This guide walks through all six steps on a RoboForex demo account with <a href=\"https:\/\/roboforex.com\/blog\/education\/what-is-the-macd\/\" data-internallinksmanager029f6b8e52c=\"55\" title=\"MACD\">MACD<\/a> Sample, the robot that ships with <a href=\"https:\/\/roboforex.com\/forex-trading\/platforms\/metatrader5-mt5\/\" data-internallinksmanager029f6b8e52c=\"8\" title=\"metatrader 5\">MetaTrader 5<\/a>, and ends with its first trade.<\/p>\n\n  <div class=\"iea-tldr\">\n    <div class=\"iea-tldr-label\">TL;DR<\/div>\n    <ol>\n      <li>Get the robot into Navigator: MACD Sample is already there, a downloaded .ex5 file goes into MQL5, Experts.<\/li>\n      <li>Drag it onto a chart, tick Allow Algo Trading on the Common tab and press the Algo Trading button on the toolbar.<\/li>\n      <li>Check the Journal for the load message and wait for the first position in the Trade tab, on a demo account first.<\/li>\n    <\/ol>\n  <\/div>\n\n  <p>An <a href=\"https:\/\/roboforex.com\/beginners\/info\/expert-advisors\/\" data-internallinksmanager029f6b8e52c=\"21\" title=\"expert advisors\">Expert Advisor<\/a> (EA) is a program that opens and closes trades in MetaTrader 5 by its own rules. Each step below has the screenshot from our demo terminal, so you can compare it with your own screen as you go.<\/p>\n\n  <h2><span class=\"ez-toc-section\" id=\"How_to_Install_an_EA_in_MT5_Six_Steps_From_File_to_First_Trade\"><\/span>How to Install an EA in MT5: Six Steps From File to First Trade<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>The whole path takes six steps. The first three put the robot on a chart, the next two give it permission to trade, and the last one shows where its trades appear.<\/p>\n\n  <ol class=\"iea-steps\">\n    <li><span class=\"iea-step-title\">Put the robot into MT5<\/span><span class=\"iea-step-text\">Navigator, Expert Advisors<\/span><\/li>\n    <li><span class=\"iea-step-title\">Open a chart<\/span><span class=\"iea-step-text\">Symbol and timeframe<\/span><\/li>\n    <li><span class=\"iea-step-title\">Attach the robot<\/span><span class=\"iea-step-text\">Drag it onto the chart<\/span><\/li>\n    <li><span class=\"iea-step-title\">Set permissions and inputs<\/span><span class=\"iea-step-text\">Common and Inputs tabs<\/span><\/li>\n    <li><span class=\"iea-step-title\">Turn on Algo Trading<\/span><span class=\"iea-step-text\">Toolbar button and icon<\/span><\/li>\n    <li><span class=\"iea-step-title\">Find the first trade<\/span><span class=\"iea-step-text\">Toolbox tabs<\/span><\/li>\n  <\/ol>\n\n  <p>What you need before you start:<\/p>\n  <ul>\n    <li><strong>Desktop MetaTrader 5<\/strong> on Windows or macOS. Our screenshots come from the macOS version, the menus are the same on Windows.<\/li>\n    <li><strong>A trading account connected to the terminal.<\/strong> Use a demo account for the first runs: the robot trades with virtual money at real market prices.<\/li>\n    <li><strong>A robot.<\/strong> The examples use MACD Sample, which is included in every MetaTrader 5 installation.<\/li>\n  <\/ul>\n\n  <div class=\"iea-promo\">\n    <div>\n      <div class=\"iea-promo-title\">Run Your First Robot on a Free Demo Account<\/div>\n      <div class=\"iea-promo-sub\">Open a RoboForex demo account and follow this guide in your own MetaTrader 5.<\/div>\n    <\/div>\n    <div class=\"iea-promo-actions\">\n      <a class=\"iea-promo-btn\" href=\"https:\/\/my.roboforex.com\/en\/register\/\" target=\"_blank\" rel=\"nofollow\">Open a Demo Account<\/a>\n    <\/div>\n  <\/div>\n\n  <h2><span class=\"ez-toc-section\" id=\"Step_1_Put_the_Robot_Into_MetaTrader_5\"><\/span>Step 1: Put the Robot Into MetaTrader 5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>A robot can run only once it appears in the Navigator window under Expert Advisors. Open Navigator from View, Navigator, or with Ctrl+N on Windows. How the robot gets there depends on where it came from.<\/p>\n\n  <div class=\"iea-table-wrap iea-table-wide\">\n    <table class=\"rf\">\n      <thead><tr><th>Where the robot comes from<\/th><th>How to install it<\/th><th>File<\/th><th>Where it appears in Navigator<\/th><\/tr><\/thead>\n      <tbody>\n        <tr><td data-label=\"Source\">Built-in example (MACD Sample)<\/td><td data-label=\"How to install\">Nothing to install, it ships with MT5<\/td><td data-label=\"File\">.ex5<\/td><td data-label=\"In Navigator\">Expert Advisors, Examples, MACD<\/td><\/tr>\n        <tr><td data-label=\"Source\">MQL5 Market<\/td><td data-label=\"How to install\">Download or buy it in the built-in Market<\/td><td data-label=\"File\">.ex5<\/td><td data-label=\"In Navigator\">Expert Advisors, Market<\/td><\/tr>\n        <tr><td data-label=\"Source\">Another website or a developer<\/td><td data-label=\"How to install\">Copy the file into MQL5, Experts<\/td><td data-label=\"File\">.ex5 or .mq5<\/td><td data-label=\"In Navigator\">Expert Advisors<\/td><\/tr>\n      <\/tbody>\n    <\/table>\n  <\/div>\n\n  <p>To install a robot from a file, open File, Open Data Folder. In the folder that opens, go to MQL5, then Experts, and copy the file there. Return to MetaTrader 5, right-click Expert Advisors in Navigator and choose Refresh. The robot appears in the list.<\/p>\n  <p>An .ex5 file is ready to run. An .mq5 file is source code: open it in MetaEditor (the IDE button on the toolbar) and press Compile, and the terminal creates the .ex5 next to it.<\/p>\n  <p>For robots from the MQL5 Market, including free ones, see <a href=\"https:\/\/roboforex.com\/blog\/education\/expert-advisor-download-mt5-mql5-market\/\">Expert Advisor Download for MT5<\/a>. This guide continues with MACD Sample, so there is nothing to install yet.<\/p>\n\n  <h2><span class=\"ez-toc-section\" id=\"Step_2_Open_a_Chart_for_the_Robots_Symbol_and_Timeframe\"><\/span>Step 2: Open a Chart for the Robot&#8217;s Symbol and Timeframe<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>A robot trades the symbol and timeframe of the chart it is attached to. Its description usually names the ones it was built and tested on. Running it on other settings without a test changes its results. MACD Sample is demonstrated here on EURUSD, one-hour chart (H1).<\/p>\n  <ol>\n    <li>Start MetaTrader 5 and check that it is connected to your account. The account number and server appear in the window title.<\/li>\n    <li>Open Market Watch from View, Market Watch.<\/li>\n    <li>Find EURUSD. If the symbol is missing, right-click inside Market Watch, choose Symbols and switch it on.<\/li>\n    <li>Double-click the symbol, or right-click it and choose Chart Window.<\/li>\n    <li>Click H1 on the timeframe bar at the top of the terminal.<\/li>\n  <\/ol>\n\n  <figure class=\"wp-block-image size-large\"><a href=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/Trading_Robot_pic_1.png\"><img height=\"1586\" loading=\"lazy\" width=\"2482\" decoding=\"async\" src=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/Trading_Robot_pic_1.png\" alt=\"MetaTrader 5 with a EURUSD H1 chart open, Market Watch at the top left and the Navigator window below it\"><\/a><figcaption class=\"wp-element-caption\">EURUSD H1 chart ready for the robot, with Navigator open on the left. Source: MetaTrader 5, RoboForex demo account.<\/figcaption><\/figure>\n\n  <h2><span class=\"ez-toc-section\" id=\"Step_3_Attach_the_Robot_to_the_Chart\"><\/span>Step 3: Attach the Robot to the Chart<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>With the chart open, the robot goes onto it straight from Navigator.<\/p>\n  <ol>\n    <li>In Navigator, expand Expert Advisors, then Examples, then MACD, and find MACD Sample.<\/li>\n    <li>Drag MACD Sample onto the chart and release the mouse button. Double-clicking the robot's name does the same and attaches it to the active chart.<\/li>\n    <li>The robot's properties window opens with two tabs, Common and Inputs. Step 4 covers both.<\/li>\n  <\/ol>\n\n  <figure class=\"wp-block-image size-large\"><a href=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/Trading_Robot_pic_2.png\"><img height=\"1587\" loading=\"lazy\" width=\"2484\" decoding=\"async\" src=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/Trading_Robot_pic_2.png\" alt=\"Navigator expanded to Expert Advisors, Examples, MACD, MACD Sample, with the robot's name shown in the top right corner of the EURUSD chart\"><\/a><figcaption class=\"wp-element-caption\">MACD Sample in Navigator and its name in the top right corner of the chart after attaching. Source: MetaTrader 5, RoboForex demo account.<\/figcaption><\/figure>\n\n  <p>One chart holds one robot. If you drag a second robot onto the same chart, it replaces the first. To run two robots, open a second chart and attach the second robot there. Two copies of one robot on the same symbol need separate magic numbers.<\/p>\n\n  <h2><span class=\"ez-toc-section\" id=\"Step_4_Allow_Algo_Trading_and_Keep_the_Default_Inputs\"><\/span>Step 4: Allow Algo Trading and Keep the Default Inputs<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>The properties window decides whether this robot may trade and with what settings. For the first demo run, tick one box and leave the inputs as they are, after one look at the trade size.<\/p>\n\n  <h3>Common Tab<\/h3>\n  <p>Tick Allow Algo Trading. Without this tick the robot stays on the chart but cannot send orders, even when algo trading is switched on for the whole terminal.<\/p>\n\n  <figure class=\"wp-block-image size-large\"><a href=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/Trading_Robot_pic_3.png\"><img height=\"1590\" loading=\"lazy\" width=\"2488\" decoding=\"async\" src=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/Trading_Robot_pic_3.png\" alt=\"MACD Sample 5.50 properties window on the Common tab with the Allow Algo Trading box ticked\"><\/a><figcaption class=\"wp-element-caption\">Common tab of MACD Sample with Allow Algo Trading ticked. Source: MetaTrader 5, RoboForex demo account.<\/figcaption><\/figure>\n\n  <h3>Inputs Tab<\/h3>\n  <p>The Inputs tab lists the settings that control the robot: how it finds a signal, when it opens and closes a position and how large the trade is.<\/p>\n  <ul>\n    <li><strong>Keep the defaults on the first run.<\/strong> Change an input only when you know what it does and after checking the change in the Strategy Tester.<\/li>\n    <li><strong>Check Lots.<\/strong> This input sets the trade size. MACD Sample opens 0.1 lot by default. Make sure that size fits your demo balance before you press OK.<\/li>\n  <\/ul>\n\n  <figure class=\"wp-block-image size-large\"><a href=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/Trading_Robot_pic_4.png\"><img height=\"1596\" loading=\"lazy\" width=\"2484\" decoding=\"async\" src=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/Trading_Robot_pic_4.png\" alt=\"MACD Sample Inputs tab: Lots 0.1, Take Profit 50 pips, Trailing Stop Level 30 pips, MACD open level 3, MACD close level 2, MA trend period 26\"><\/a><figcaption class=\"wp-element-caption\">Default inputs of MACD Sample. Lots sets the trade size. Source: MetaTrader 5, RoboForex demo account.<\/figcaption><\/figure>\n\n  <p>Press OK. The window closes and the robot stays on the chart, waiting for the terminal-wide switch in Step 5.<\/p>\n\n  <h2><span class=\"ez-toc-section\" id=\"Step_5_Turn_On_Algo_Trading_and_Check_the_Robots_Icon\"><\/span>Step 5: Turn On Algo Trading and Check the Robot&#8217;s Icon<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>Press the Algo Trading button on the toolbar at the top of MetaTrader 5, or Ctrl+E on Windows. This button allows automated trading for the whole terminal. A robot trades only when both switches are on: the button and the Allow Algo Trading box from Step 4.<\/p>\n  <p>Then look at the top right corner of the chart, where the robot's name and a small cap icon sit. In our terminal the two states look like this:<\/p>\n  <ul>\n    <li><strong>Trading allowed.<\/strong> The Algo Trading button shows a green triangle and the cap next to MACD Sample turns blue. The robot is running and will act on its next signal, which does not mean an instant trade.<\/li>\n    <li><strong>Trading not allowed.<\/strong> The button shows a red square and the cap is grey. Check the button, the Common tab and the messages in the Journal.<\/li>\n  <\/ul>\n\n  <figure class=\"wp-block-image size-large\"><a href=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/Trading_Robot_pic_5.png\"><img height=\"1594\" loading=\"lazy\" width=\"2486\" decoding=\"async\" src=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/Trading_Robot_pic_5.png\" alt=\"Algo Trading button switched on with a green triangle, and a blue cap icon next to MACD Sample in the top right corner of the chart\"><\/a><figcaption class=\"wp-element-caption\">Algo Trading on: green triangle on the button, blue cap next to the robot's name. Source: MetaTrader 5, RoboForex demo account.<\/figcaption><\/figure>\n\n  <p>The Options window holds more permission settings, and some robots also need WebRequest or DLL access. Both are covered in <a href=\"https:\/\/roboforex.com\/blog\/education\/metatrader-automated-trading-enable-algo-trading-mt5\/\">MetaTrader 5 Automated Trading: How to Enable Algo Trading and Expert Advisor Permissions in MT5<\/a>.<\/p>\n\n  <h2><span class=\"ez-toc-section\" id=\"Step_6_Find_Your_Robots_First_Trade\"><\/span>Step 6: Find Your Robot&#8217;s First Trade<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>The Toolbox panel at the bottom of MetaTrader 5 shows everything the robot does. Open it from View, Toolbox, or with Ctrl+T on Windows. Each tab answers a different question.<\/p>\n\n  <div class=\"iea-table-wrap\">\n    <table class=\"rf\">\n      <thead><tr><th>Where to look<\/th><th>What you see there<\/th><\/tr><\/thead>\n      <tbody>\n        <tr><td data-label=\"Where to look\">Journal<\/td><td data-label=\"What you see\">Terminal messages: the robot loaded, automated trading switched on or off, connection to the server, orders sent and executed<\/td><\/tr>\n        <tr><td data-label=\"Where to look\">Experts<\/td><td data-label=\"What you see\">Messages written by the robot itself, including warnings and errors<\/td><\/tr>\n        <tr><td data-label=\"Where to look\">Trade<\/td><td data-label=\"What you see\">Open positions and <a href=\"https:\/\/roboforex.com\/blog\/education\/pending-orders-learning-buy-limit-and-sell-limit-buy-stop-and-sell-stop\/\" data-internallinksmanager029f6b8e52c=\"198\" title=\"Pending orders\">pending orders<\/a>: volume, open price, stop-loss and take-profit<\/td><\/tr>\n        <tr><td data-label=\"Where to look\">Chart<\/td><td data-label=\"What you see\">Entry arrows and stop-loss and take-profit lines, if trade levels are switched on in the chart settings<\/td><\/tr>\n        <tr><td data-label=\"Where to look\">History<\/td><td data-label=\"What you see\">Closed trades and their result for the period you select<\/td><\/tr>\n      <\/tbody>\n    <\/table>\n  <\/div>\n\n  <p>Start with the Journal. In our terminal the line \"expert MACD Sample (EURUSD,H1) loaded successfully\" appeared with Experts in the Source column, followed by \"automated trading is enabled\" once the button was pressed.<\/p>\n\n  <figure class=\"wp-block-image size-large\"><a href=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/Trading_Robot_pic_6.png\"><img height=\"1594\" loading=\"lazy\" width=\"2486\" decoding=\"async\" src=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/Trading_Robot_pic_6.png\" alt=\"Toolbox Journal tab with the message expert MACD Sample (EURUSD,H1) loaded successfully and lines saying automated trading is enabled\"><\/a><figcaption class=\"wp-element-caption\">Journal tab: MACD Sample loaded on EURUSD H1 and automated trading enabled. Source: MetaTrader 5, RoboForex demo account.<\/figcaption><\/figure>\n\n  <p>With a clean log, the robot waits for its signal. When the conditions of MACD Sample are met, it sends an <a href=\"https:\/\/roboforex.com\/blog\/education\/main-order-types-in-trading\/\" data-internallinksmanager029f6b8e52c=\"311\" title=\"Order\">order<\/a>, the Journal records it, and the position appears in the Trade tab. After the position closes, its result moves to History.<\/p>\n  <p>The wait depends on the strategy. MACD Sample on H1 checks its conditions on each new price and can go hours or days without a signal. An empty Trade tab with no errors in the Journal and Experts tabs means the robot is waiting. If a trade does not appear after the strategy should have triggered, go to the five checks below.<\/p>\n\n  <h2><span class=\"ez-toc-section\" id=\"What_the_Robots_Inputs_Mean_Lot_Size_Stops_and_Magic_Number\"><\/span>What the Robot&#8217;s Inputs Mean: Lot Size, Stops and Magic Number<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>Once the first demo trade has run, the next question is which inputs to change. Most robots share the same three groups of settings, and MACD Sample shows them clearly.<\/p>\n\n  <h3>Lot Size<\/h3>\n  <p>Lots is the size of every trade. On EURUSD, 0.1 lot is 10,000 euros, and each pip of price movement is worth about 1 USD. A 30-pip move against the position at 0.1 lot costs about 30 USD, at 1 lot about 300 USD. Choose the lot from the loss you accept on one trade. On a 4,470 USD demo balance, as in our screenshots, 0.1 lot is a moderate size for a first test.<\/p>\n\n  <h3>Stops: Take Profit and Trailing Stop<\/h3>\n  <p><a href=\"https:\/\/roboforex.com\/blog\/education\/what-is-stop-loss-and-take-profit\/\" data-internallinksmanager029f6b8e52c=\"56\" title=\"Take Profit\">Take Profit<\/a> (in pips), 50 by default, closes the position once it gains 50 pips. Trailing Stop Level (in pips), 30 by default, moves a stop-loss behind the price once the position is 30 pips in profit, and the stop then follows the price at that distance. MACD Sample sets no fixed stop-loss at entry. Until the <a href=\"https:\/\/roboforex.com\/blog\/education\/trailing-stop-simple-and-reliable-helper\/\" data-internallinksmanager029f6b8e52c=\"91\" title=\"Trailing Stop\">trailing stop<\/a> starts, the robot closes a losing position only on its own MACD exit signal, so the lot size from the previous paragraph is your main risk control. Robots that have a <a href=\"https:\/\/roboforex.com\/blog\/education\/what-is-stop-loss-and-take-profit\/\" data-internallinksmanager029f6b8e52c=\"228\" title=\"Stop Loss\">Stop Loss<\/a> input usually set it in pips or points in the same way.<\/p>\n\n  <h3>Signal Settings<\/h3>\n  <p>MACD open level and MACD close level set how far the MACD line must be from zero before the robot opens or closes a position. Higher values mean fewer, stronger <a href=\"https:\/\/roboforex.com\/blog\/education\/signals-on-forex-where-to-search-how-to-find-filter-and-create\/\" data-internallinksmanager029f6b8e52c=\"101\" title=\"Signals\">signals<\/a>. MA trend period, 26 by default, sets the <a href=\"https:\/\/roboforex.com\/blog\/education\/what-is-a-moving-average\/\" data-internallinksmanager029f6b8e52c=\"68\" title=\"Moving Average\">moving average<\/a> that the robot uses to confirm the trend direction before it opens a trade.<\/p>\n\n  <h3>Magic Number<\/h3>\n  <p>A magic number is an ID that a robot writes on every order it opens. It lets the robot manage only its own positions when several robots or a manual trader use the same account. If you run two copies of one robot on two charts, give each copy its own magic number. MACD Sample sets its number inside its code, so the Inputs tab has no field for it.<\/p>\n\n  <p>Change one input at a time and test each change in the <a href=\"https:\/\/roboforex.com\/blog\/education\/a-15-minute-backtest-how-to-test-a-trading-robot-in-metatrader-5\/\">Strategy Tester<\/a> before you run it on the demo account. Save a working set with the Save button on the Inputs tab, and Load returns to it later.<\/p>\n\n  <h2><span class=\"ez-toc-section\" id=\"Five_Checks_That_Get_an_Attached_Robot_Trading\"><\/span>Five Checks That Get an Attached Robot Trading<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>A robot that sits on the chart and does not trade usually has one of five attachment issues. Go through them in this order before you change its inputs or reinstall the terminal.<\/p>\n\n  <div class=\"iea-table-wrap iea-table-wide\">\n    <table class=\"rf\">\n      <thead><tr><th>Cause<\/th><th>What you see<\/th><th>What to do<\/th><\/tr><\/thead>\n      <tbody>\n        <tr><td data-label=\"Cause\">1. Trading is not allowed<\/td><td data-label=\"What you see\">Grey cap next to the robot's name, red square on the Algo Trading button<\/td><td data-label=\"What to do\">Press Algo Trading on the toolbar, then double-click the robot's name on the chart and tick Allow Algo Trading on the Common tab<\/td><\/tr>\n        <tr><td data-label=\"Cause\">2. The robot is missing from Navigator<\/td><td data-label=\"What you see\">The file is copied, but Expert Advisors does not list it<\/td><td data-label=\"What to do\">Right-click Expert Advisors and choose Refresh. If it is still missing, check that the file sits in MQL5, Experts of the same data folder and is an .ex5 file, or an .mq5 file compiled in MetaEditor<\/td><\/tr>\n        <tr><td data-label=\"Cause\">3. The robot left the chart<\/td><td data-label=\"What you see\">No name and no cap in the top right corner of the chart<\/td><td data-label=\"What to do\">Attach it again from Navigator. Check whether another robot was dropped on the same chart and replaced it<\/td><\/tr>\n        <tr><td data-label=\"Cause\">4. Algo trading switched off after a change<\/td><td data-label=\"What you see\">The robot stopped after you changed the account, profile, symbol or timeframe<\/td><td data-label=\"What to do\">Check the Algo Trading button and the robot's Common tab, then the boxes in Tools, Options, Expert Advisors<\/td><\/tr>\n        <tr><td data-label=\"Cause\">5. The terminal is closed or the computer sleeps<\/td><td data-label=\"What you see\">No new lines in the Journal for the hours the computer was off or asleep<\/td><td data-label=\"What to do\">Keep MetaTrader 5 open and turn off sleep mode, or run the terminal on a <a href=\"https:\/\/roboforex.com\/clients\/services\/forex-vps\/\" data-internallinksmanager029f6b8e52c=\"14\" title=\"vps for forex\">VPS<\/a><\/td><\/tr>\n      <\/tbody>\n    <\/table>\n  <\/div>\n\n  <p>If all five pass and the Journal or Experts tab shows an error such as no money, invalid volume or market closed, the cause sits with the account, the server or the instrument. Those cases are in the Seven Checks section of the <a href=\"https:\/\/roboforex.com\/blog\/education\/metatrader-automated-trading-enable-algo-trading-mt5\/\">automated trading guide<\/a>.<\/p>\n\n  <h2><span class=\"ez-toc-section\" id=\"How_to_Keep_Your_Robots_First_Trades_Small_and_Under_Control\"><\/span>How to Keep Your Robot&#8217;s First Trades Small and Under Control<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>A robot that runs without errors still has to prove its strategy. Move it through four stages and go to the next one only after you have read the results of the previous one.<\/p>\n\n  <ol class=\"iea-stages\">\n    <li><span class=\"iea-step-title\">Strategy Tester<\/span><span class=\"iea-step-text\">Test on history. Read the maximum drawdown, the number of trades and the ratio of profit to loss next to the final result.<\/span><\/li>\n    <li><span class=\"iea-step-title\">Demo account<\/span><span class=\"iea-step-text\">Run it at live prices with virtual money. Check that signals and orders work the way the test showed.<\/span><\/li>\n    <li><span class=\"iea-step-title\"><a href=\"https:\/\/roboforex.com\/forex-trading\/trading\/cent-account\/\" data-internallinksmanager029f6b8e52c=\"48\" title=\"Cent accounts\">Cent account<\/a><\/span><span class=\"iea-step-text\">Real execution with small amounts on a <a href=\"https:\/\/roboforex.com\/forex-trading\/trading\/cent-account\/\">RoboForex cent account<\/a>. Check the minimum lot and contract size first.<\/span><\/li>\n    <li><span class=\"iea-step-title\">Live account<\/span><span class=\"iea-step-text\">Start with the smallest lot and a loss limit you set before the first trade.<\/span><\/li>\n  <\/ol>\n\n  <p>At every stage, judge the robot by its largest drawdown, the longest run of losing trades, how often it trades and how it behaves in strong trends and in a sideways market. A high share of winning trades says little on its own. Past results do not guarantee future returns.<\/p>\n  <p>The robot trades only while MetaTrader 5 is running and connected. For round-the-clock work, the terminal can run on a <a href=\"https:\/\/roboforex.com\/clients\/services\/forex-vps\/\">RoboForex VPS<\/a>, a remote server that stays on when your computer is off.<\/p>\n\n  <h3>How to Pause or Remove the Robot<\/h3>\n  <ul>\n    <li><strong>Pause all robots.<\/strong> Press the Algo Trading button again. Every robot in the terminal stops sending orders. Positions they opened stay open until you close them.<\/li>\n    <li><strong>Remove one robot.<\/strong> Right-click its chart, choose Expert List, select the robot and press Remove. The other robots keep working, and its open positions stay open.<\/li>\n  <\/ul>\n\n  <div class=\"iea-promo\">\n    <div>\n      <div class=\"iea-promo-title\">Run Expert Advisors in RoboForex MetaTrader 5<\/div>\n      <div class=\"iea-promo-sub\">Desktop MT5 for Windows and macOS, with algo trading and the Strategy Tester built in.<\/div>\n    <\/div>\n    <div class=\"iea-promo-actions\">\n      <a class=\"iea-promo-btn\" href=\"https:\/\/roboforex.com\/forex-trading\/platforms\/metatrader5-mt5\/\" target=\"_blank\">Get MetaTrader 5<\/a>\n    <\/div>\n  <\/div>\n\n  <h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <p>Six steps take a robot from a file to a live order: Navigator, chart, attach, Allow Algo Trading, the Algo Trading button and the Toolbox tabs where its trades appear. Two switches decide whether it may trade, and the cap icon on the chart shows their state at a glance. Open a RoboForex demo account, attach MACD Sample to a EURUSD H1 chart in MetaTrader 5 and watch the Journal and Trade tabs for its first trade.<\/p>\n\n  <div class=\"iea-cta\">\n    <a href=\"https:\/\/my.roboforex.com\/en\/register\/\" target=\"_blank\" rel=\"nofollow\">Open a Demo Account and Run MACD Sample<\/a>\n  <\/div>\n\n  <h2><span class=\"ez-toc-section\" id=\"FAQ\"><\/span>FAQ<span class=\"ez-toc-section-end\"><\/span><\/h2>\n  <div class=\"iea-faq\">\n    <details class=\"iea-faq-item\">\n      <summary class=\"iea-faq-q\">Can I run an EA in the MT5 mobile app or web terminal?<\/summary>\n      <div class=\"iea-faq-a\">No. Expert Advisors run only in desktop MetaTrader 5 on a computer or on a VPS. The mobile app and the web terminal can show your positions, but they do not run robots.<\/div>\n    <\/details>\n    <details class=\"iea-faq-item\">\n      <summary class=\"iea-faq-q\">Can an MT4 EA run on MT5?<\/summary>\n      <div class=\"iea-faq-a\">No. MT4 robots are written in MQL4 and MT5 robots in MQL5, and an .ex4 file does not open in MetaTrader 5. The robot's code has to be rewritten in MQL5 and compiled, or you need the MT5 version from its developer.<\/div>\n    <\/details>\n    <details class=\"iea-faq-item\">\n      <summary class=\"iea-faq-q\">How long does it take for the robot to open its first trade?<\/summary>\n      <div class=\"iea-faq-a\">It depends on the robot's entry rules and the market. MACD Sample on an H1 chart can wait hours or days for a signal. An empty Trade tab with no errors in the Journal and Experts tabs means the robot is waiting.<\/div>\n    <\/details>\n    <details class=\"iea-faq-item\">\n      <summary class=\"iea-faq-q\">Can I run two robots at the same time?<\/summary>\n      <div class=\"iea-faq-a\">Yes, one robot per chart. Open a separate chart for each robot and check that each has Allow Algo Trading ticked. Two copies of one robot on the same symbol need separate magic numbers, which MACD Sample does not offer. Several robots on one account add up to one total risk, so size each of them with that in mind.<\/div>\n    <\/details>\n    <details class=\"iea-faq-item\">\n      <summary class=\"iea-faq-q\">Does the robot keep trading after I close MetaTrader 5?<\/summary>\n      <div class=\"iea-faq-a\">No. The robot runs inside the terminal, so it stops when you close MetaTrader 5 or the computer goes to sleep. Positions it opened stay open and are still exposed to the market. A VPS keeps the terminal running around the clock.<\/div>\n    <\/details>\n    <details class=\"iea-faq-item\">\n      <summary class=\"iea-faq-q\">Why is my expert advisor not working?<\/summary>\n      <div class=\"iea-faq-a\">Most often one of the two switches is off: the Algo Trading button on the toolbar or Allow Algo Trading on the robot's Common tab. A grey cap next to the robot's name shows this. If both are on, go through the five checks in this article and read the Journal and Experts tabs for errors.<\/div>\n    <\/details>\n  <\/div>\n  <script type=\"application\/ld+json\">\n  {\n    \"@context\": \"https:\/\/schema.org\",\n    \"@type\": \"FAQPage\",\n    \"mainEntity\": [\n      {\n        \"@type\": \"Question\",\n        \"name\": \"Can I run an EA in the MT5 mobile app or web terminal?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"No. Expert Advisors run only in desktop MetaTrader 5 on a computer or on a VPS. The mobile app and the web terminal can show your positions, but they do not run robots.\"\n        }\n      },\n      {\n        \"@type\": \"Question\",\n        \"name\": \"Can an MT4 EA run on MT5?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"No. MT4 robots are written in MQL4 and MT5 robots in MQL5, and an .ex4 file does not open in MetaTrader 5. The robot's code has to be rewritten in MQL5 and compiled, or you need the MT5 version from its developer.\"\n        }\n      },\n      {\n        \"@type\": \"Question\",\n        \"name\": \"How long does it take for the robot to open its first trade?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"It depends on the robot's entry rules and the market. MACD Sample on an H1 chart can wait hours or days for a signal. An empty Trade tab with no errors in the Journal and Experts tabs means the robot is waiting.\"\n        }\n      },\n      {\n        \"@type\": \"Question\",\n        \"name\": \"Can I run two robots at the same time?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"Yes, one robot per chart. Open a separate chart for each robot and check that each has Allow Algo Trading ticked. Two copies of one robot on the same symbol need separate magic numbers, which MACD Sample does not offer. Several robots on one account add up to one total risk, so size each of them with that in mind.\"\n        }\n      },\n      {\n        \"@type\": \"Question\",\n        \"name\": \"Does the robot keep trading after I close MetaTrader 5?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"No. The robot runs inside the terminal, so it stops when you close MetaTrader 5 or the computer goes to sleep. Positions it opened stay open and are still exposed to the market. A VPS keeps the terminal running around the clock.\"\n        }\n      },\n      {\n        \"@type\": \"Question\",\n        \"name\": \"Why is my expert advisor not working?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"Most often one of the two switches is off: the Algo Trading button on the toolbar or Allow Algo Trading on the robot's Common tab. A grey cap next to the robot's name shows this. If both are on, go through the five checks in this article and read the Journal and Experts tabs for errors.\"\n        }\n      }\n    ]\n  }\n  <\/script>\n\n  <div class=\"iea-read-next\">\n    <div class=\"iea-read-next-label\">Read next<\/div>\n    <ul>\n      <li><a href=\"https:\/\/roboforex.com\/blog\/education\/metatrader-automated-trading-enable-algo-trading-mt5\/\">MetaTrader 5 Automated Trading: How to Enable Algo Trading and Expert Advisor Permissions in MT5<\/a>: every permission a robot needs, WebRequest and DLL included.<\/li>\n      <li><a href=\"https:\/\/roboforex.com\/blog\/education\/expert-advisor-download-mt5-mql5-market\/\">Expert Advisor Download for MT5: Free, Paid and Rented Robots From the MQL5 Market<\/a>: where to find the next robot to install.<\/li>\n      <li><a href=\"https:\/\/roboforex.com\/blog\/education\/a-15-minute-backtest-how-to-test-a-trading-robot-in-metatrader-5\/\">A 15-Minute Backtest: How to Test a Trading Robot in MetaTrader 5<\/a>: check a robot on history before it trades on demo.<\/li>\n      <li><a href=\"https:\/\/roboforex.com\/blog\/education\/what-is-a-trading-robot\/\">What Is a Trading Robot and How Does It Work?<\/a>: what happens inside an Expert Advisor between signal and order.<\/li>\n    <\/ul>\n  <\/div>\n\n  <div class=\"iea-disclaimer\">\n    <em>Any information provided in articles on this website is based solely on the personal opinions of the authors. These articles should not be construed as trading recommendations or a call to action. The authors and RoboForex accept no responsibility for the results of any trades made on the basis of these recommendations and reviews. Past performance is not indicative of future results. Trading <a href=\"https:\/\/roboforex.com\/forex-trading\/assets\/stocks\/\" data-internallinksmanager029f6b8e52c=\"10\" title=\"invest in stocks\">stocks<\/a> and CFDs involves a high risk of capital loss.<\/em>\n  <\/div>\n\n<\/div>\n<\/div>\n<!-- ==================== \/BLOCK 1 ==================== -->\n\n<!-- ==================== BLOCK 2: STYLES ==================== -->\n<style>\n:root {\n  --green:        #5ab02b;\n  --green-hover:  #489022;\n  --link:         #0384c6;\n  --text:         #2E3A59;\n  --text-light:   #666666;\n  --heading:      #2E3A59;\n  --border:       #e0e0e0;\n  --table-head:   #f5f5f5;\n  --table-stripe: #fafafa;\n  --promo-bg:     #f8f8f8;\n  --promo-border: #e8e8e8;\n  --radius:       4px;\n  --font:         'Roboto', Arial, sans-serif;\n  --max-w:        1160px;\n}\n\n\/* Outer wrapper. No side padding, decision 0014. *\/\n.iea-wrap {\n  box-sizing: border-box; max-width: var(--max-w); margin: 0 auto; padding: 0;\n}\n\n\/* Base prose *\/\n.iea {\n  font-family: var(--font);\n  font-size: 20px;\n  line-height: 1.7;\n  color: var(--text);\n  max-width: var(--max-w);\n}\n.iea.iea, .iea.iea * {\n  font-family: 'Roboto', Arial, sans-serif !important;\n}\n.iea p { margin: 0 0 20px; }\n.iea p a,\n.iea li a,\n.iea figcaption a,\n.iea td a,\n.iea .iea-faq-a a,\n.iea .iea-disclaimer a {\n  color: var(--link);\n  text-decoration: none;\n}\n.iea p a:hover,\n.iea li a:hover,\n.iea figcaption a:hover,\n.iea td a:hover,\n.iea .iea-faq-a a:hover,\n.iea .iea-disclaimer a:hover {\n  text-decoration: none;\n}\n.iea strong { color: var(--heading); font-weight: 700; }\n.iea em { font-style: italic; }\n.iea ul {\n  padding-left: 22px; margin: 0 0 18px;\n  display: flex; flex-direction: column; gap: 6px;\n}\n.iea ol { padding-left: 26px; margin: 0 0 20px; }\n.iea li { font-size: 20px; line-height: 1.7; color: var(--text); }\n\n\/* Headings. No border-bottom, no padding-bottom. No H1 rule. *\/\n.iea h2 {\n  font-size: 32px; font-weight: 700; color: var(--heading);\n  margin: 40px 0 16px; scroll-margin-top: 68px;\n}\n.iea h3 {\n  font-size: 22px; font-weight: 700; color: var(--heading);\n  margin: 28px 0 12px; scroll-margin-top: 68px;\n}\n\n\/* TL;DR, decisions 0024, 0031 *\/\n.iea .iea-tldr {\n  background: var(--promo-bg); border: 1px solid var(--border);\n  border-radius: var(--radius); padding: 18px 24px; margin: 24px 0 28px;\n}\n.iea .iea-tldr-label {\n  font-size: 14px; font-weight: 700; letter-spacing: .08em;\n  text-transform: uppercase; color: var(--text-light); margin: 0 0 8px;\n}\n.iea .iea-tldr ol { margin: 0; padding-left: 22px; }\n.iea .iea-tldr li { font-size: 17px; line-height: 1.6; margin: 0 0 6px; }\n.iea .iea-tldr li:last-child { margin-bottom: 0; }\n\n\/* Step strip and stage sequence: ring nodes with grey connectors,\n   decision 0033. Numbers come from a CSS counter, ASCII only. *\/\n.iea ol.iea-steps,\n.iea ol.iea-stages {\n  list-style: none; margin: 28px 0 32px; padding: 0;\n  display: grid; gap: 16px; counter-reset: iea-step;\n}\n.iea ol.iea-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }\n.iea ol.iea-stages { grid-template-columns: repeat(4, minmax(0, 1fr)); }\n.iea ol.iea-steps > li,\n.iea ol.iea-stages > li {\n  position: relative; counter-increment: iea-step;\n  padding: 52px 0 0; margin: 0;\n  display: flex; flex-direction: column; gap: 4px;\n}\n.iea ol.iea-steps > li::before,\n.iea ol.iea-stages > li::before {\n  content: counter(iea-step);\n  position: absolute; top: 0; left: 0; z-index: 1;\n  width: 40px; height: 40px; box-sizing: border-box;\n  border: 2px solid var(--green); border-radius: 50%; background: #fff;\n  display: flex; align-items: center; justify-content: center;\n  font-size: 18px; font-weight: 700; color: var(--heading); line-height: 1;\n}\n.iea ol.iea-steps > li::after,\n.iea ol.iea-stages > li::after {\n  content: ''; position: absolute; top: 19px; left: 40px; right: -16px;\n  height: 2px; background: var(--border);\n}\n.iea ol.iea-steps > li:last-child::after,\n.iea ol.iea-stages > li:last-child::after { display: none; }\n.iea .iea-step-title {\n  font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--heading);\n}\n.iea .iea-step-text { font-size: 15px; line-height: 1.5; color: var(--text-light); }\n.iea .iea-step-text a { color: var(--link); text-decoration: none; }\n@media (max-width: 900px) {\n  .iea ol.iea-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }\n  .iea ol.iea-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }\n  .iea ol.iea-steps > li:nth-child(3n)::after,\n  .iea ol.iea-stages > li:nth-child(2n)::after { display: none; }\n}\n@media (max-width: 600px) {\n  .iea ol.iea-steps,\n  .iea ol.iea-stages { grid-template-columns: 1fr; gap: 0; row-gap: 0; }\n  .iea ol.iea-steps > li,\n  .iea ol.iea-stages > li { padding: 6px 0 22px 56px; min-height: 40px; }\n  .iea ol.iea-steps > li::after,\n  .iea ol.iea-stages > li::after,\n  .iea ol.iea-steps > li:nth-child(3n)::after,\n  .iea ol.iea-stages > li:nth-child(2n)::after {\n    display: block; top: 40px; bottom: 0; left: 19px; right: auto;\n    width: 2px; height: auto;\n  }\n  .iea ol.iea-steps > li:last-child::after,\n  .iea ol.iea-stages > li:last-child::after { display: none; }\n}\n\n\/* Read next, decision 0028 *\/\n.iea .iea-read-next {\n  border-top: 1px solid var(--border);\n  padding: 20px 0 0; margin: 36px 0 28px;\n}\n.iea .iea-read-next-label {\n  font-size: 14px; font-weight: 700; letter-spacing: .08em;\n  text-transform: uppercase; color: var(--text-light); margin: 0 0 8px;\n}\n.iea .iea-read-next ul { margin: 0; padding-left: 22px; }\n.iea .iea-read-next li { font-size: 17px; line-height: 1.6; margin: 0 0 6px; }\n.iea .iea-read-next li:last-child { margin-bottom: 0; }\n\n\/* Table. Cap at 720px, left aligned. Three- and four-column tables use the\n   full width. *\/\n.iea-table-wrap {\n  max-width: 720px; overflow-x: auto; margin: 24px 0;\n  border: 1px solid var(--border); border-radius: var(--radius);\n}\n.iea-table-wrap.iea-table-wide { max-width: none; }\n.iea table.rf {\n  width: 100%; border-collapse: collapse; font-size: 16px; margin-bottom: 0;\n}\n.iea table.rf thead tr { background: var(--table-head); }\n.iea table.rf th {\n  padding: 10px 14px; text-align: left; font-size: 16px; font-weight: 700;\n  color: var(--heading); border-bottom: 2px solid var(--border);\n}\n.iea table.rf td {\n  padding: 10px 14px; border-bottom: 1px solid var(--border);\n  vertical-align: top; line-height: 1.45; color: var(--text);\n}\n.iea table.rf tr:last-child td { border-bottom: none; }\n.iea table.rf tr:nth-child(even) td { background: var(--table-stripe); }\n\n@media (max-width: 600px) {\n  .iea-table-wrap { border: none; overflow-x: visible; }\n  .iea table.rf thead { display: none; }\n  .iea table.rf tr {\n    display: block; margin-bottom: 12px;\n    border: 1px solid var(--border); border-radius: var(--radius);\n  }\n  .iea table.rf td {\n    display: block; border-bottom: 1px solid var(--border);\n  }\n  .iea table.rf td::before {\n    content: attr(data-label);\n    display: block; font-size: 13px; font-weight: 700;\n    text-transform: uppercase; letter-spacing: .04em;\n    color: var(--text-light); margin: 0 0 2px;\n  }\n}\n\n\/* Images: native WordPress image block, overflow guard only, decision 0005 *\/\n.wp-block-image { margin: 24px 0; }\n.wp-block-image img { max-width: 100%; height: auto; display: block; }\n\n\/* Promo *\/\n.iea-promo {\n  background: var(--promo-bg); border: 1px solid var(--promo-border);\n  border-radius: var(--radius); margin: 36px 0; padding: 24px 28px;\n  display: grid; grid-template-columns: 1fr auto;\n  align-items: center; gap: 24px;\n}\n@media (max-width: 600px) { .iea-promo { grid-template-columns: 1fr; } }\n.iea-promo-title {\n  font-size: 20px; font-weight: 700; color: var(--heading);\n  margin-bottom: 5px; line-height: 1.3;\n}\n.iea-promo-sub { font-size: 15px; color: var(--text-light); line-height: 1.5; }\n.iea-promo-actions { display: flex; gap: 8px; flex-wrap: wrap; }\n.iea-promo-btn {\n  display: inline-block;\n  background: var(--green) !important;\n  color: #fff !important;\n  text-decoration: none !important;\n  font-size: 15px; font-weight: 700; padding: 10px 15px;\n  border-radius: 3px; white-space: nowrap; transition: background .15s;\n}\n.iea-promo-btn:hover { background: var(--green-hover) !important; }\n\n\/* CTA *\/\n.iea-cta { text-align: center; margin: 36px 0; }\n.iea-cta a {\n  display: inline-block;\n  background: var(--green) !important;\n  color: #fff !important;\n  text-decoration: none !important;\n  font-size: 20px; font-weight: 700; padding: 13px 32px;\n  border-radius: 3px; transition: background .15s;\n}\n.iea-cta a:hover { background: var(--green-hover) !important; }\n@media (max-width: 600px) { .iea-cta a { font-size: 18px; padding: 12px 20px; } }\n\n\/* FAQ. Native <details>, ASCII + and - only. Decision 0003. *\/\n.iea-faq { margin: 8px 0; max-width: 900px; }\n.iea-faq details.iea-faq-item { border-bottom: 1px solid var(--border); }\n.iea-faq details.iea-faq-item:last-child { border-bottom: none; }\n.iea-faq details.iea-faq-item summary.iea-faq-q {\n  list-style: none; cursor: pointer; display: flex; align-items: center;\n  justify-content: space-between; gap: 12px; padding: 16px 0; margin: 0;\n  font-size: 18px; font-weight: 700; color: var(--heading); user-select: none;\n}\n.iea-faq details.iea-faq-item summary.iea-faq-q::-webkit-details-marker { display: none; }\n.iea-faq details.iea-faq-item summary.iea-faq-q::after {\n  content: '+'; flex-shrink: 0; font-size: 22px; font-weight: 300;\n  color: var(--green); line-height: 1;\n}\n.iea-faq details.iea-faq-item[open] summary.iea-faq-q::after { content: '-'; }\n.iea-faq .iea-faq-a {\n  font-size: 18px; color: var(--text); line-height: 1.65; margin: 0 0 16px;\n  padding: 0; animation: iea-faq-open .18s ease;\n}\n@keyframes iea-faq-open {\n  from { opacity: 0; transform: translateY(-4px); }\n  to   { opacity: 1; transform: translateY(0); }\n}\n@media (max-width: 600px) {\n  .iea-faq details.iea-faq-item summary.iea-faq-q { font-size: 17px; }\n  .iea-faq .iea-faq-a { font-size: 17px; }\n}\n\n\/* Disclaimer. Always last. *\/\n.iea-disclaimer {\n  font-size: 12px; color: var(--text-light); line-height: 1.65;\n  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border);\n}\n.iea-disclaimer em { font-style: italic; }\n<\/style>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>A walkthrough with the built-in MACD Sample robot on a RoboForex demo account, from the robot file to the chart, the Algo Trading button and the first trade.<\/p>\n","protected":false},"author":20,"featured_media":22233,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","jetpack_post_was_ever_published":false},"categories":[29],"tags":[3065,3083,184,250],"class_list":["post-22232","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-education","tag-expert-avdisor-mt5","tag-how-to-install-expert-advisor-in-mt5","tag-metatrader-5-trading-platform","tag-trading-robot"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install an EA in MT5: 6 Steps to Your First Trade<\/title>\n<meta name=\"description\" content=\"How to install an EA in MT5 on a demo account: put the robot in Navigator, attach it to a chart, allow algo trading and find its first trade.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/roboforex.com\/blog\/education\/how-to-install-ea-in-mt5\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install an EA in MT5: 6 Steps to Your First Trade\" \/>\n<meta property=\"og:description\" content=\"How to install an EA in MT5 on a demo account: put the robot in Navigator, attach it to a chart, allow algo trading and find its first trade.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/roboforex.com\/blog\/education\/how-to-install-ea-in-mt5\/\" \/>\n<meta property=\"og:site_name\" content=\"RoboForex Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoboForexOfficial\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-21T13:11:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-21T13:11:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/mt5-ea-first-automated-trade-1160x652-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1160\" \/>\n\t<meta property=\"og:image:height\" content=\"652\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@RoboForexGlobal\" \/>\n<meta name=\"twitter:site\" content=\"@RoboForexGlobal\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andrey Goilov\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"16 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/how-to-install-ea-in-mt5\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/how-to-install-ea-in-mt5\\\/\"},\"headline\":\"How to Install an EA in MT5 and Place Your First Automated Trade\",\"datePublished\":\"2026-10-21T13:11:31+00:00\",\"dateModified\":\"2026-10-21T13:11:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/how-to-install-ea-in-mt5\\\/\"},\"wordCount\":3079,\"publisher\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/how-to-install-ea-in-mt5\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/mt5-ea-first-automated-trade-1160x652-1.png\",\"keywords\":[\"expert avdisor mt5\",\"how to install expert advisor in mt5\",\"metatrader 5 trading platform\",\"trading robot\"],\"articleSection\":[\"Education\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/how-to-install-ea-in-mt5\\\/\",\"url\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/how-to-install-ea-in-mt5\\\/\",\"name\":\"How to Install an EA in MT5: 6 Steps to Your First Trade\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/how-to-install-ea-in-mt5\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/how-to-install-ea-in-mt5\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/mt5-ea-first-automated-trade-1160x652-1.png\",\"datePublished\":\"2026-10-21T13:11:31+00:00\",\"dateModified\":\"2026-10-21T13:11:35+00:00\",\"description\":\"How to install an EA in MT5 on a demo account: put the robot in Navigator, attach it to a chart, allow algo trading and find its first trade.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/how-to-install-ea-in-mt5\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/how-to-install-ea-in-mt5\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/how-to-install-ea-in-mt5\\\/#primaryimage\",\"url\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/mt5-ea-first-automated-trade-1160x652-1.png\",\"contentUrl\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/mt5-ea-first-automated-trade-1160x652-1.png\",\"width\":1160,\"height\":652,\"caption\":\"How to Install an EA in MT5 and Place Your First Automated Trade\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/how-to-install-ea-in-mt5\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Main\",\"item\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Education\",\"item\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/education\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Install an EA in MT5 and Place Your First Automated Trade\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/\",\"name\":\"RoboForex Blog\",\"description\":\"Blog RoboForex for Traders: Trading News, Analysis, Forecasts - forex and stocks | RoboForex Blog\",\"publisher\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/#organization\"},\"alternateName\":\"RoboForex Ltd\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/#organization\",\"name\":\"RoboForex Ltd\",\"alternateName\":\"RoboForex\",\"url\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/android-chrome-512x512-1.png\",\"contentUrl\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/android-chrome-512x512-1.png\",\"width\":512,\"height\":512,\"caption\":\"RoboForex Ltd\"},\"image\":{\"@id\":\"https:\\\/\\\/roboforex.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoboForexOfficial\\\/\",\"https:\\\/\\\/x.com\\\/RoboForexGlobal\",\"https:\\\/\\\/www.youtube.com\\\/RoboForexOfficial\",\"https:\\\/\\\/www.instagram.com\\\/roboforex\\\/\"],\"address\":{\"@type\":\"PostalAddress\",\"streetAddress\":\"2118 Guava Street, Belama Phase 1\",\"addressLocality\":\"Belize City\",\"addressRegion\":\"BZ\",\"postalCode\":\"00000\",\"addressCountry\":\"BZ\"},\"contactPoint\":{\"@type\":\"ContactPoint\",\"telephone\":\"+593 964 256 286\",\"contactType\":\"customer service\",\"availableLanguage\":\"en\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install an EA in MT5: 6 Steps to Your First Trade","description":"How to install an EA in MT5 on a demo account: put the robot in Navigator, attach it to a chart, allow algo trading and find its first trade.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/roboforex.com\/blog\/education\/how-to-install-ea-in-mt5\/","og_locale":"en_US","og_type":"article","og_title":"How to Install an EA in MT5: 6 Steps to Your First Trade","og_description":"How to install an EA in MT5 on a demo account: put the robot in Navigator, attach it to a chart, allow algo trading and find its first trade.","og_url":"https:\/\/roboforex.com\/blog\/education\/how-to-install-ea-in-mt5\/","og_site_name":"RoboForex Blog","article_publisher":"https:\/\/www.facebook.com\/RoboForexOfficial\/","article_published_time":"2026-10-21T13:11:31+00:00","article_modified_time":"2026-10-21T13:11:35+00:00","og_image":[{"width":1160,"height":652,"url":"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/mt5-ea-first-automated-trade-1160x652-1.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_creator":"@RoboForexGlobal","twitter_site":"@RoboForexGlobal","twitter_misc":{"Written by":"Andrey Goilov","Est. reading time":"16 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/roboforex.com\/blog\/education\/how-to-install-ea-in-mt5\/#article","isPartOf":{"@id":"https:\/\/roboforex.com\/blog\/education\/how-to-install-ea-in-mt5\/"},"headline":"How to Install an EA in MT5 and Place Your First Automated Trade","datePublished":"2026-10-21T13:11:31+00:00","dateModified":"2026-10-21T13:11:35+00:00","mainEntityOfPage":{"@id":"https:\/\/roboforex.com\/blog\/education\/how-to-install-ea-in-mt5\/"},"wordCount":3079,"publisher":{"@id":"https:\/\/roboforex.com\/blog\/#organization"},"image":{"@id":"https:\/\/roboforex.com\/blog\/education\/how-to-install-ea-in-mt5\/#primaryimage"},"thumbnailUrl":"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/mt5-ea-first-automated-trade-1160x652-1.png","keywords":["expert avdisor mt5","how to install expert advisor in mt5","metatrader 5 trading platform","trading robot"],"articleSection":["Education"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/roboforex.com\/blog\/education\/how-to-install-ea-in-mt5\/","url":"https:\/\/roboforex.com\/blog\/education\/how-to-install-ea-in-mt5\/","name":"How to Install an EA in MT5: 6 Steps to Your First Trade","isPartOf":{"@id":"https:\/\/roboforex.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/roboforex.com\/blog\/education\/how-to-install-ea-in-mt5\/#primaryimage"},"image":{"@id":"https:\/\/roboforex.com\/blog\/education\/how-to-install-ea-in-mt5\/#primaryimage"},"thumbnailUrl":"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/mt5-ea-first-automated-trade-1160x652-1.png","datePublished":"2026-10-21T13:11:31+00:00","dateModified":"2026-10-21T13:11:35+00:00","description":"How to install an EA in MT5 on a demo account: put the robot in Navigator, attach it to a chart, allow algo trading and find its first trade.","breadcrumb":{"@id":"https:\/\/roboforex.com\/blog\/education\/how-to-install-ea-in-mt5\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/roboforex.com\/blog\/education\/how-to-install-ea-in-mt5\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/roboforex.com\/blog\/education\/how-to-install-ea-in-mt5\/#primaryimage","url":"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/mt5-ea-first-automated-trade-1160x652-1.png","contentUrl":"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/mt5-ea-first-automated-trade-1160x652-1.png","width":1160,"height":652,"caption":"How to Install an EA in MT5 and Place Your First Automated Trade"},{"@type":"BreadcrumbList","@id":"https:\/\/roboforex.com\/blog\/education\/how-to-install-ea-in-mt5\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Main","item":"https:\/\/roboforex.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Education","item":"https:\/\/roboforex.com\/blog\/education\/"},{"@type":"ListItem","position":3,"name":"How to Install an EA in MT5 and Place Your First Automated Trade"}]},{"@type":"WebSite","@id":"https:\/\/roboforex.com\/blog\/#website","url":"https:\/\/roboforex.com\/blog\/","name":"RoboForex Blog","description":"Blog RoboForex for Traders: Trading News, Analysis, Forecasts - forex and stocks | RoboForex Blog","publisher":{"@id":"https:\/\/roboforex.com\/blog\/#organization"},"alternateName":"RoboForex Ltd","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/roboforex.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/roboforex.com\/blog\/#organization","name":"RoboForex Ltd","alternateName":"RoboForex","url":"https:\/\/roboforex.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/roboforex.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/android-chrome-512x512-1.png","contentUrl":"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/android-chrome-512x512-1.png","width":512,"height":512,"caption":"RoboForex Ltd"},"image":{"@id":"https:\/\/roboforex.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoboForexOfficial\/","https:\/\/x.com\/RoboForexGlobal","https:\/\/www.youtube.com\/RoboForexOfficial","https:\/\/www.instagram.com\/roboforex\/"],"address":{"@type":"PostalAddress","streetAddress":"2118 Guava Street, Belama Phase 1","addressLocality":"Belize City","addressRegion":"BZ","postalCode":"00000","addressCountry":"BZ"},"contactPoint":{"@type":"ContactPoint","telephone":"+593 964 256 286","contactType":"customer service","availableLanguage":"en"}}]}},"views":"","jetpack_featured_media_url":"https:\/\/roboforex.com\/blog\/wp-content\/uploads\/2026\/10\/mt5-ea-first-automated-trade-1160x652-1.png","_links":{"self":[{"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/posts\/22232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/comments?post=22232"}],"version-history":[{"count":1,"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/posts\/22232\/revisions"}],"predecessor-version":[{"id":22234,"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/posts\/22232\/revisions\/22234"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/media\/22233"}],"wp:attachment":[{"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/media?parent=22232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/categories?post=22232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/roboforex.com\/blog\/wp-json\/wp\/v2\/tags?post=22232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}