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