Testing the new MQL5 compiler for x64 platforms - 2 to 10 times faster calculations! - page 3

 

Renat Fatkhullin, great job - there is no limit to perfection!

Question, why can't we make an MT4 x64 version? The global difference between 4 and 5 for users is in the handling of orders, this is what slows down the transition to new technologies.

 
Alexander Laur:

So, if you want to achieve acceleration, you have to get only current prices via system calls and calculate all indicators etc. in the code?

If so, then "congratulations" to you for wasting your time developing your language!

I congratulate you for the amazing level of inadequacy that you personally demonstrate with enviable consistency.

And congratulations to our team for the breakthrough. The results are in - a breakthrough of 2 to 10 times in mathematics. This applies to any of our own calculations.

For those who don't understand: if you just did CopyXXX and a couple of lines of if + OrderSend, then your code has 0% of calculations/mathematics and you almost can't speed anything up. But if you calculate indicators yourself, do heavy calculations and analysis, you will get 2 to 10 times speedup.

 
-Aleks-:

Renat Fatkhullin , great job - there is no limit to perfection!

Question, why can't we make an MT4 x64 version? The global difference between 4 and 5 for users in working with orders, and this is what slows down the transition to new technologies.

The answer has been given more than a dozen times.

The technological lifespan of MT4 is over. And if you continue to sit on it, it's your own fault for losing opportunities. It is not someone else's fault, but yours alone, including your brokers.

If you think that someone is obliged to maintain old systems just because something doesn't want to get off them, then you greatly misunderstand the principles of this world (they are different from how an individual sees the world). Unfortunately, the mass of traders have so convinced themselves of MT4 that it's ridiculous to watch. People are so shown to be enemies to themselves that it cannot be explained by rational reasons.

 
Renat Fatkhullin:

....

For those who don't understand: if all you've done is CopyXXX and a couple of lines of if + OrderSend, then your code has 0% of calculations/mathematics and you can't speed anything up. But if you calculate indicators by yourself and do hard calculations and analysis, you will get speedup from 2 to 10 times.

I think everyone understands that 2...10 times is compared to what you did before, i.e. you could get closer to the benchmark, to C++

If you'd decided not to invent "your language" very similar to C and just take the benchmark, maybe the Sisyphean work would be unnecessary....

But of course there are no limits to perfection.

 
Prival-2:

I think everybody understands that 2...10 times compared to what you did before, i.e. you could get closer to the benchmark, to C++

If you'd decided not to invent "your language" very similar to C and just take the benchmark, maybe the Sisyphean work would be unnecessary....

But of course there are no limits to perfection.

You can't just take the benchmark, it's licensed on both sides.
 
Renat Fatkhullin:

The answer has been given more than a dozen times.

The technological lifespan of MT4 is over. And if you continue to sit on it, it is your own fault that you are losing opportunities. It's not anyone else's fault, but yours alone, including your brokers.

If you think that someone is obliged to maintain old systems just because something doesn't want to get off them, then you greatly misunderstand the principles of this world (they are different from how an individual sees the world). Unfortunately, the mass of traders have so convinced themselves of MT4 that it's ridiculous to watch. People are so shown to be enemies to themselves that it cannot be explained by rational reasons.

I'm not talking about platform development in the form of tweaks and add-ons, I'm just trying to say the obvious - MT4 is convenient for Forex and MT5 is for stock trading. Maybe it would be logical to separate the specialization explicitly - in the form of different programs, or to implement a change of interface / technical features? It is obvious that brokerage companies do not want to switch to MT5 (for example Alpari, where they cannot even open a demo account on 5) and traders dreaming of the gold mountains are used to MT4. Not to the program, but to the ability to trade in different directions and not in a common position. MT4 is great for auto-trading - you can put a lot of different strategies on one account, and have open positions on different sides of the instrument. And also, ordering work for quadruple is cheaper than for fives. Well, and an ambiguous issue with the work on the history of different brokers... But it seems to be a solved issue. Do you have statistics on users switching from MT4 to MT5?
 
-Aleks-:
... MT5 for stock trading.

Do you trade on the FORTS?

It would be interesting to hear what is the MT5 good for stock trading?

 

A random response to something that caught on:

Renat Fatkhullin:

The answer has been given more than a dozen times.

The technological lifespan of MT4 is over. And if you continue to sit on it, it's your own fault for losing opportunities. It is not someone else's fault, but yours alone, including your brokers.

If you think that someone is obliged to maintain old systems just because something won't get off them, then you greatly misunderstand the principles of this world (they are different from the way an individual sees the world). Unfortunately, the mass of traders have so convinced themselves of MT4 that it's ridiculous to watch. People are so shown to be enemies to themselves that it cannot be explained by rational reasons.

With MT4 you can run e.g. 5 different Expert Advisors on one and the same trading symbol and on one account in one terminal and the Expert Advisors will not conflict with each other thanks to magic symbols.
In the MT5 for the same effect you need to have 5 different terminals. And you need to have 5 accounts at your broker. That's one of the reasons why mt4 is alive and will continue to be alive.
Plus, mt4 can test on real ticks using third party programs. But I read that this feature will appear in mt5 by default, very happy.
Mt4 is friendlier and easier to trade. It's not about habit, it's just that mt4 has the same functionality as mt5, plus hedging. Except of course for the Depth of Market and the latest updates of mt5 which unfortunately is not yet supported by most brokers.

Now for the business.
In general I got "code generation error" when compiling with optimize=1, without any further explanation of the error.
The error is caused by using sinput instead of input for EA parameters.

sinput bool TestInput = false;
int OnInit() {
   if(!TestInput){
      return(INIT_FAILED);
   }
   return(INIT_SUCCEEDED);
}
 
Renat Fatkhullin:

As we promised earlier, we are releasing a new MQL5 compiler optimized for the 64-bit version of MetaTrader 5.

Yes, it is really cool! Was the CLI used? And why do we need 20 cores in a xeon? Has the compiler started to generate parallelizable code on the fly? Or is it all in one thread?
 

Yes, the ability to put five EAs per symbol on one account on one terminal is a definite advantage of MT4. For MT5 it is possible to do so only for Expert Advisors, which were originally written with such possibility in mind.

About "testing on real ticks, using third-party programs" - what does MT4 have to do with it, the main thing here is the third-party programs themselves, you can do that on MT5 as well.