Connecting to MetaTrader 5

Modified on Fri, 6 Sep at 9:31 AM

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.


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.


2. Close the MT5 platform.

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


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. 

4. 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.



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.


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


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


Next, windows for signing an agreement will open:

Image 14213

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 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

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, you need to 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