Automated Trading in MetaTrader 5

Automated trading is managing a trading account with a computer program that can analyze quotes of financial instruments and trade in Forex and stock markets. These programs are able to completely replace trader, as they perform trading and analysis activity autonomously.

The MetaTrader 5 trading platform includes full-featured MQL5 IDE (integrated development environment) that allows to develop and run automated trading programs. It includes all the necessary components to develop, debug, test, optimize and run trading robots.

MetaTrader 5 Algorithmic Trading

The core of the IDE is the MQL5 programming language (MetaQuotes Language 5). All MetaTrader 5 programs are created using this language. With its broadest functionality and flexibility, MQL5 allows you to control almost every aspect of your trading strategy or analytical tool. You can read more about this language in MQL5 Reference - it is written in clear and accessible language. The "Introduction to MQL5: How to write simple Expert Advisor and Custom Indicator" article will help you to quickly get used to the new programming language and write a simple EA or indicator.

The best way to write MQL5 trading programs is to use our special-purpose MetaEditor. The MetaEditor built-in debugger can find errors as you develop your MQL5 programs.

After compilation MQL5 programs are available in MetaTrader 5 trading platform, where you can run them. In no time you can apply technical indicators to a chart and start to analyze dynamics of financial instrument. It's better to test an Expert Advisor in Strategy Tester before it is allowed to trade.

Strategy Tester is an extraordinary powerful tool crafted for developers of trading robots. Before you start your robot to trade, you can assess its profitability, risk level, stability and other parameters in Strategy Tester. Testing is based on historical data available for the chosen currency pair or stock. These data reflect the unique features of this financial instrument dynamics. The corresponding section of the terminal user guide describes the basic steps that will allow you to estimate EA's profitability during tests and optimization.

MetaTrader 5 Strategy Tester

Optimization of Expert Advisors is another core feature of Strategy Tester. The purpose of optimization is to find the best values of Expert Advisor's parameters in order to achieve the desired characteristics of trading robot. For example, it can be maximal profit, stability, low level of risk, etc. Genetic algorithms support in Strategy Tester significantly decreases the time of complex optimizations with large number of passes. Distributed optimization also terrifically speeds up this process by taking advantage of additional computational power via local network or the Internet.

MQL5 Wizard

However, you can get the necessary Expert Advisor without any programming skills. For example, using the MQL5 Wizard, which allows to quickly generate an Expert Advisor code. With the new Wizard, the programming experience is not required - the application will do all the necessary work to create an Expert Advisor. You only need to set the required parameters and select necessary components. Thus, every trader with just four clicks can construct a trading robot that trades according to a given strategy. The best way to get started with MQL5 Wizard is to read the MQL5 Wizard for Dummies article.

MQL5 Wizard

The "Jobs" Freelance Service

In addition, you can order development of a trading robot in the Jobs service. To do this, you need to clearly formulate a trading strategy and create a request in the "Jobs" section at, specifying the budget (how much money you can pay) and the deadline (how much time you can wait). Your request may gain interest of professional developers, so that you can select the most suitable one according to your criteria. You can read more information on how to order Trading Robot for MetaTrader 5 in the useful article How to Order a Trading Robot for MetaTrader 4 and MetaTrader 5.

The Jobs Freelance Service

MetaTrader 5 AppStore

And finally, one more convenient way to get a trading robot (or indicator) - buy it via MetaTrader 5 Market, the store of ready-made solutions written in MQL5. At the Market, traders that work with MetaTrader 5 can buy trading robot, indicator, script or library they need. All these programs are sold there massively and at a low price! Be sure to read articles about how to buy a trading robot in MetaTrader 4/5 AppStore, and what are the benefits of this marketplace.

MetaTrader 5 AppStore

Register at to gain access to the "Jobs" freelance service, MetaTrader AppStore and other services of the community!

Get account

You agree to website policy and terms of use