Skip to main content

How to run your trading system live on Windows (MetaTrader 5 setup)

Export your trading system, install it in MetaTrader 5 on Windows, and run it on your broker account.

What is Metatrader?

MetaTrader 5 (MT5) is the terminal almost every broker supports, used to view charts, place trades, and run automated strategies called “Expert Advisors” (EAs). Normally, building an EA requires coding in MQL5, which most traders can’t do. Profectus solves this with a no-code drag-and-drop builder that exports a working EA in seconds.

Before you get here, test your idea in Profectus. Building, backtesting and analysis all happen inside the platform, so you find out whether a strategy is worth running before you install anything. Backtests run on 1-minute historical bar data, free for every user. Tick-level backtesting is coming soon. See How to backtest on Profectus.AI.

This guide covers the step after that: getting a system you already trust onto your broker account.

Setting up Metatrader 5

  1. Download Metatrader 5 here: https://www.metatrader5.com/

  2. After completing the setup, Metatrader 5 will open, and you'll be prompted to log in. You press next and choose "Open a demo account".

  3. Fill out the details, and you'll receive the account login details. Write these down somewhere so you can always come back to them if needed. Press Finish to be logged in automatically.

Exporting your strategy to Metatrader 5

  1. If you are ready to export your template or strategy from the Profectus builder, press Export and an .mq5 file will be downloaded. It will show up in the folder where all your downloads are located.

  2. Locate the file and double-click it to open Metaeditor.

  3. The file will open in Metaeditor, and you can now compile it into an execution (.ex5) file by pressing Compile.

  4. Go back to your Metatrader 5 terminal and find the Navigator section on the left-hand side. If this is not there, you go to View in the top toolbar and find Navigator there to expand the pane.

  5. In the Navigator section, you go:

    Expert Advisors --> Advisors --> right mouse click on any of the Experts that are there --> Refresh.

    Your strategy will now show up in this list.

Trading your strategy

Disclaimer: Always use a demo account first to run your strategies!

  1. If you are ready to put your strategy into action on your demo account, the first thing you need to do is open a symbol chart. Find the symbol you want to trade in the Market Watch section, right-click, and press Chart Window.

  2. A chart window will open up. Navigate to your strategy in the Expert Advisors section, click it, and drag it onto the chart. You'll see the following window, and you check the checkbox that says Allow Algo Trading.
    Press OK.

  3. The Expert Advisor is now loaded onto the chart, but will not be trading as long as Algo Trading is not turned on fully. Navigate to the top toolbar and find the Algo Trading button. If it's off, it's a red button like you see in the screenshot below.

    When you press it, it turns on and turns into a green play button.

  4. You will also notice that the little hat in the top-right corner of your chart window will turn from grey to blue, indicating that your strategy is now active and will be taking trades.

Summarized video tutorial

Did this answer your question?