Download MetaTrader 5

Automated Trading Championship: The Reverse of the Medal

2 July 2008, 15:25
MetaQuotes Software Corp.
4
1 497

Automated Trading Championship based on online trading platform MetaTrader 4 is being conducted for the third time and accepted by many people as a matter-of-course yearly event being waited for with impatience. Thanks in large part to the incidence of the Championship where hundreds of Expert Advisors (trading robots in MQL4) compete with each other, and to its permanent online coverage, automated trading rose to a much higher level. However, larger scale of the contest places more serious demands on the Participants. This is precisely the topic we're going to discuss in this article.

Automated Trading Championship 2007
Final diagram of the Participants of Automated Trading Championship 2007.

The purpose of the Automated Trading Championship, as we alleged repeatedly before, is to popularize automated trading and MQL4 as the most suitable programming language for coding trading robots. Previous Championships aroused large interests of traders worldwide, and specialized journals gave coverage to it.

It seems unthinkable that nobody before MetaQuotes Software Corp. thought of conducting such a Championship welcomed by all traders. In fact, organizing such an event needs more than just a desire to do it. The necessary amount of money is not a sufficient condition for conducting such a competition, though. Technicality comes to the fore here.

Many people have already got used to that they can launch in one PC a number of copies of MetaTrader 4 Client Terminal installed in different directories. Since not traders themselves participate in the Championship, but their programs written in MQL4, the first question now arises of how to start some hundreds of EAs, each provided with its individual copy of the client terminal.

Despite the smallest size of the distributive (3.5 Mb), there are natural limitations determined by the power of the operating system itself. A lite version of the terminal was written especially for the Championship. Everything unnecessary for an EA trading independently within a number of months was removed in this version. This allows us to launch 40 copies of MetaTrader 4 Client Terminal on one server. Do you know any other trading platform that would allow doing this?

However, simultaneous work of dozens of EAs on one server sets certain requirements to the participating Expert Advisors themselves. In the past, we had some examples of incorrectly coded EAs creating giant log files of some gigabytes within one day and taking all free disk space of the server.

In some cases, these were terminal logs containing order opening error messages. In other cases, they were technical messages of the EAs themselves writing some reports at each arriving tick. The work of these EAs would result in inability of other Participants' EAs to work properly, this is why the incorrectly coded Expert Advisors were unconditionally excluded from the competition.

Except the disk space shared, another important resource is CPU. In recent years, modern processor speeds have increased manifold, but no supercomputer, even the most modern one, can work efficiently with a badly coded program algorithm.

A correctly optimized algorithm works by an order faster than that written with errors. In 2005, when the new online trading platform MetaTrader 4 had been officially released, we gave the results of tests measuring the speed and the accuracy of calculations in the new programming language, MQL4, as compared to other languages.

MQL4 was only behind special programming languages, but got to windward of the languages of other trading platforms. However, even with this high speed of calculations, it would be unfair to consume most CPU resources at the expense of other Participants' Expert Advisors on the same server.

This is why all EAs that consume CPU resources uneconomically were and will be excluded from the contest. At the stage of Registration, we are going to detect such incorrectly written Expert Advisors providing certain test time limitations in the eight-month interval in the "Every tick" mode. If the EA's testing time exceeds 5 minutes, this EA will not be allowed to participate in the contest.

When preparing the Championship, we immediately emphasized the online coverage of the contest. A task was set to show the state of each competing account in the real-time mode and to display open positions, current balance and equity, as well as many other statistical parameters. For this purpose, we created a special website that was developed and is being supported by a team of programmers, developers of web applications.

Every site visitor could both view the information of his or her interest and leave a message in the thread of each Participant. We were doing our best to both provide "dry" information and publish interviews with Participants and some survey analytical materials at each stage of the contest.

Hardware for the Automated Trading Championship 2006

Especially for the purposes of the very first Championship, Automated Trading Championship 2006, a server priced at US$ 35 000 was purchased, but that was not the greatest investment. The main expenses were working hours spent on creating new technologies for adapting the trade server data to the web functions of the Championship's website. We expected a heavy load on the contest website, but it still turned out to exceed the planned load. Organizing the first Championship produced much useful experience for creating online technologies of the kind.

The site of the Championship was visited by about 6 500 unique visitors per day, each visitor having viewed 30 pages at the average. Besides displaying the current state of the account, we also showed the current history of closed trades and the terminal logs of each Participant. All this is a considerable amount of information!

Not everything always clicks into place. There were errors on our side, equipment failures, non-market spikes during quoting. It is impossible to hedge against all risks, but we did and are going to do our best to conduct the Championship 2008 at the highest possible technological level.

It will be recalled that over 600 prize contenders were registered at Automated Trading Championship 2006, 258 of which were admitted to participation. As to ATC 2007, there were over 2000 registered contenders, 603 of which became Participants after detailed checks. We cannot predict the amount of registrations for Automated Trading Championship 2008, but we will do our best to protect Olympic principles of equal opportunities and of fair play.

Only one thing is required from you as from the participant of the forthcoming contest - creation of a correctly coded Expert Advisor and non-infringement of the Rules. And may the battle be to the strong!

Translated from Russian by MetaQuotes Software Corp.
Original article: https://www.mql5.com/ru/articles/1541

Last comments | Go to discussion (4)
Hongbin Gu
Hongbin Gu | 3 Jul 2008 at 02:56

Referring to what is said in the article: "If the EA's testing time exceeds 5 minutes, this EA will not be allowed to participate int the contest." I wonder the testing time of not exceeding 5 minutes, is the testing implemented on your server or an ordinary PC just like what we use our MT4 terminal client software on? Thanks.

Rosh
Rosh | 3 Jul 2008 at 12:43
It's no matter. Preliminary back testing will run only for one EA at moment.
MQL4 Comments
MQL4 Comments | 22 Jul 2008 at 07:12
valleyfir:

Referring to what is said in the article: "If the EA's testing time exceeds 5 minutes, this EA will not be allowed to participate int the contest." I wonder the testing time of not exceeding 5 minutes, is the testing implemented on your server or an ordinary PC just like what we use our MT4 terminal client software on? Thanks.

This is probably just a check to make sure you had some idea of what you were doing. Poorly written code is written by inexperienced developers who probably aren't going to finish in the top ten anyway. I'm sure the 5 minute rule is far above any realistic use of the processor. They probably just don't want some infinite loop crap running on during the competition.
MQL4 Comments
MQL4 Comments | 11 Apr 2011 at 17:24
If you want to increase your forex trading, and profitability in the market, then this article will definitely help you. This article is very constructive for discouraged forex traders. This article is very helpful if you want to earn profit in less than half an hour with almost no effort. This will be very helpful for expert as well as new forex traders. I assure you that you will not find such a useful product any where else.

-----------------

[url=http://www.best4xrobots.com/]Free forex robot[/url]
[url=http://www.best4xrobots.com/]Forex expert advisor[/url]

Step on New Rails: Custom Indicators in MQL5 Step on New Rails: Custom Indicators in MQL5

I will not list all of the new possibilities and features of the new terminal and language. They are numerous, and some novelties are worth the discussion in a separate article. Also there is no code here, written with object-oriented programming, it is a too serous topic to be simply mentioned in a context as additional advantages for developers. In this article we will consider the indicators, their structure, drawing, types and their programming details, as compared to MQL4. I hope that this article will be useful both for beginners and experienced developers, maybe some of them will find something new.

Here Comes the New MetaTrader 5 and MQL5 Here Comes the New MetaTrader 5 and MQL5

This is just a brief review of MetaTrader 5. I can't describe all the system's new features for such a short time period - the testing started on 2009.09.09. This is a symbolical date, and I am sure it will be a lucky number. A few days have passed since I got the beta version of the MetaTrader 5 terminal and MQL5. I haven't managed to try all its features, but I am already impressed.

Portfolio trading in MetaTrader 4 Portfolio trading in MetaTrader 4

The article reveals the portfolio trading principles and their application to Forex market. A few simple mathematical portfolio arrangement models are considered. The article contains examples of practical implementation of the portfolio trading in MetaTrader 4: portfolio indicator and Expert Advisor for semi-automated trading. The elements of trading strategies, as well as their advantages and pitfalls are described.

False trigger protection for Trading Robot False trigger protection for Trading Robot

Profitability of trading systems is defined not only by logic and precision of analyzing the financial instrument dynamics, but also by the quality of the performance algorithm of this logic. False trigger is typical for low quality performance of the main logic of a trading robot. Ways of solving the specified problem are considered in this article.