Connecting to MetaTrader 5

Modified on Fri, 30 May at 5:18 PM

This guide provides instructions on how to connect the MetaTrader 5 platform.

  

To use this connection, you need to have the MetaTrader 5 platform running on your computer with a connected trading account and quotes.
The list of brokers that can be connected to ATAS via MT5 includes:
AMP, BCS, FXFlat, Just2trade, Ava Futures.

Configuring MetaTrader 5

To connect MT5 to ATAS, you first need to configure MT5:

  1. In the menu, select Service - Settings, open the Advisors tab, and check the boxes for Allow automated trading and Allow DLL imports.

MT5 Advisors Settings

  1. Close the MT5 platform.
  2. Install MT5 expert files by pressing the respective button in the MT5 connector in ATAS. The process of the connector creation is described below.

Install MT5 Expert Files Button

After each update in the ATAS platform, you need to update the EA files, i.e. click the “Install MT5 expert files” button in the MT5 connector.
  1. To add the OFT expert advisor to a chart, go to the “Advisors” section in the Navigator, find OFT, and right-click on it. Then, choose “Attach to chart” or simply drag OFT onto the chart.

Attach OFT Advisor

When adding the advisor in the settings, make sure that the AppPath parameter specifies the correct path to the folder where ATAS is installed.
Make sure that Allow automatic trading is checked in the General  tab.

Advisor Settings General Tab

You cannot change the timeframe of the chart in MT5 where the advisor is added, otherwise the online data will stop coming.

Connecting MT5 Account to ATAS

To connect an MT5 account to ATAS, open Connections - Add - MT5 - Next.

Add MT5 Connection

Next, windows for signing an agreement will open:

Agreement Signing Windows

OCO (One Cancels Other) orders for connecting MT5 are simulated locally on your computer. This means that the platform must be connected to your broker for OCO orders to work properly. If you get disconnected and one of the OCO orders is executed, the other orders in the group WILL NOT BE canceled! If you are okay with this, click I Accept, Please continue.

Setting up the connection in ATAS

Connection Settings

  • Connection type - select your broker.
  • MT5 address - default local IP address.

After configuring the connection, it will appear as a separate line in the list of connections.

You can read about the settings of this window at the following link: Connection Settings Window.

Connections List

  1. Add - add a new connection.
  2. Type - connection source.
  3. Name - connection name which you can set yourself.
  4. Status - connection status.
  5. Quote Provider - option to select a quote provider (this connection will be used as a quote provider).
  6. Auto-Connect - if you want the connection to automatically occur when the platform is launched, enable this option.
  7. Connection settings button.
  8. Remove connection from the list button.
  9. Connect/Disconnect - connect/disconnect the connector.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article