Download MetaTrader 5

MQL5 Cloud Network: Are You Still Calculating?

4 April 2013, 10:26
MetaQuotes Software Corp.
16
3 884

It will soon be a year and a half since the MQL5 Cloud Network has been launched. This leading edge event ushered in a new era of algorithmic trading - now with a couple of clicks, traders can have hundreds and thousands of computing cores at their disposal for the optimization of their trading strategies.

All issues regarding network installation, setup and structure are covered in the FAQ section on the official MQL5 Cloud Network website. And yet there is one question that has been eating many of us up: "How much?" And to answer this question once and for all we have added a special feature that allows every cloud agent customer to see how many tasks were computed over the optimization of his Expert Advisor. All you need is to go to Agents ->Tasks in your MQL5.community profile.

Tasks tab in the Agents section

Here you will be able to see in how many passes the optimization was completed, when it was performed and how much it cost you. The Screenshot above suggests that the optimization of the Expert Advisor MACD Sample available in the standard delivery for EURUSD on H1 (symbol and time frame, respectively) began on September 20, 2012 at 14:20. The number of passes (completed tasks) at this point is zero as the screenshot was taken right at the start of the optimization.


Optimization of MACD Sample over 7 months in the "Every tick" mode

The Figure below shows settings made for the parameter optimization.

MACD Sample optimization parameters

Given the combination of the MACD Sample external parameters, the number of passes totaled over 152 billion. Even if we assume that every pass requires 1 second of time, the total optimization time will be 485 years. In the settings, select the interval from 2012.01.01 to 2012.08.01 and the tick generation mode "Every tick" as when testing in the Automated Trading Championship 2012 Automatic Tests.

Select Slow Complete Algorithm (complete parameter search) as the optimization mode and start the optimization. The strategy tester will independently determine that the given number of passes requires the use of the Fast Genetic Based Algorithm and will switch to this faster optimization mode. The optimization employing the Fast Genetic Based Algorithm only involves agents of one MQL5 Cloud Network task manager since it is the responsibility of the task manager to redistribute tasks among the associated agents.

Cloud agents computing the MACD Sample optimization tasks

The Figure above shows that 2172 tasks were distributed among the agents of the access point Europe 2 and the computing of 2168 of them has currently been completed.

The fact that the strategy tester switched to the Fast Genetic Based Algorithm can be easily verified by number 10496 displayed in the line of estimated passes. The screenshot below suggests that 2815 passes out of 10496 have been completed by now.

MACD Sample optimization settings

To monitor the optimization chart, let us switch to the corresponding tab.

Optimization chart

Following the optimization, we switch to the Journal where we can see that the optimization completed on pass 8704 and the total of 134 tasks were computed using local agents (3% of the total number of tasks) as opposed to 3892 tasks computed using cloud agents.

Startegy Tester journal with optimization messages


How much is the computing of 4000 tasks?

Now we can find out the answer to the question asked at the beginning - how much it costs to optimize the Expert Advisor MACD Sample over the interval from 01.01.2012 to 01.08.2012 in the "Every tick" mode. We go to our profile and see the answer in the "Agents" tab being 0.23 credits.

Entry in the "Tasks" Tab Regarding the Number of Passes, Time Taken and Computing Costs in the MQL5 Cloud Network

Cloud agents computed 3892 tasks in 24 minutes which fully agrees with the strategy tester data.

So, we had almost 500 agents working for us for 24 minutes and it only cost us 0.23 credits. If you only had 4 local agents involved, you would have to wait (500 cloud agents * 24 minutes / 4 local agents) for 3000 minutes which makes 50 hours or a bit over 2 days for the optimization to finish. Thus, you bought 50 hours of computations for the trading strategy parameter optimization for 0.23 credits. And now think what you can buy for $0.23 in real world - not much, is it?

Decide for yourself if such speedup is worth that money!


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

Last comments | Go to discussion (16)
Dua Yong Rew
Dua Yong Rew | 5 Jan 2013 at 09:47
phi.nuts:

Since we are in trading business, maybe you've heard the term : Supply and Demand.

Maybe it's too much supply in agents and less demand for cloud.

how much commission is MQ taking from the supplier?
phi nuts
phi nuts | 6 Jan 2013 at 06:42
doshur:
how much commission is MQ taking from the supplier?
Read the FAQ : currently 10 %.
david mackay
david mackay | 19 Aug 2013 at 16:12

I have 2 computers available to the cloud....... they are not used a lot, perhaps because of my location.


I quite like the idea of having other computers available in case I need results quickly, and the costs are trivial compared to the costs of having additional computers and maintaining whatever may be necessary to have them available.


This is a great service.!!

JD4
JD4 | 23 Jun 2015 at 03:33
david mackay:

I have 2 computers available to the cloud....... they are not used a lot, perhaps because of my location.


I quite like the idea of having other computers available in case I need results quickly, and the costs are trivial compared to the costs of having additional computers and maintaining whatever may be necessary to have them available.


This is a great service.!!

I agree on the location part, I think that has something to do with it.  The central server that sends the jobs out to us local computer users I think looks at what is available in the immediate geographical area first and tries to use those.  So if someone is running a test from the US, they look for US agents first, and so on.  I also agree with the rest of the post, but for different reasons. :P
Khurram Mustafa
Khurram Mustafa | 16 Nov 2015 at 19:45
thank you for sharing
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.

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.

Using text files for storing input parameters of Expert Advisors, indicators and scripts Using text files for storing input parameters of Expert Advisors, indicators and scripts

The article describes the application of text files for storing dynamic objects, arrays and other variables used as properties of Expert Advisors, indicators and scripts. The files serve as a convenient addition to the functionality of standard tools offered by MQL languages.