You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Is your blood boiling because you just realized that you might have spent all that time doing int optimizations, and now MT5
?
I mean, with these results, int conversion should actually be considered a de-optimization, am I right?
Is my code not a true apples to apples? If it's not please point out the error in my ways!
It changes absolutely nothing whether you spend time optimizing or not. The "error", the "thing" or whatever is reproduced during live sessions.
But yeah it may change the way the ea will act - depending on the context
It changes absolutely nothing whether you spend time optimizing or not. The "error", the "thing" or whatever is reproduced during live sessions.
But yeah it may change the way the ea will act - depending on the context
Context: some here have a hypothesis that converting all doubles to integers will yield a higher performance on MT5. That hypothesis was tested and failed to produce a meaningful result. Therefore, adding the overhead of the arithmetic required to convert a double to an int only increases performance latency (until proven otherwise). If you need to round a double the most efficient method is
...and if you need to compare two doubles for equality the most efficient method (according to edge testing) is
Context: some here have a hypothesis that converting all doubles to integers will yield a higher performance on MT5. That hypothesis was tested and failed to produce a meaningful result. Therefore, adding the overhead of the arithmetic required to convert a double to an int only increases performance latency (until proven otherwise). If you need to round a double the most efficient method is
...and if you need to compare two doubles for equality the most efficient method (according to edge testing) is
It's not really a solution to convert all doubles to integer. Actually it would be more productive if ....
To all involved on this thread, here is a short message and also some advice!
My blood is currently "boiling hot", and I may just start spurting out extremely vile language and breaking the forum rules. So, I am going to try to apply some self-control and abandon the discussion.
To those that may be following it, I now leave to you to decide for yourself and ask that you do your own testing and research and come to your own conclusions.
Regards,
Fernando
Good decision
Good decision
It's not really a solution to convert all doubles to integer. Actually it would be more productive if ....
You come a bit late to this discussion, please read the thread and don't rely on distorted presentation done by @nicholishen
Converting all doubles to integer is 1 solution, when you have arithmetic operations to do, nothing less, nothing more.
Here the conclusion from the test :
The tests demonstrate that if you don't have arithmetic operations to do, the best solution is :
If you have some arithmetic operations to do, using ints become faster after X operations (X depending of the operations).
Alain, you know mql5 better than anyone... Can you tell me why double performs the same as int on mt5?
Seriously ?
You come a bit late to this discussion, please read the thread and don't rely on distorted presentation done by @nicholishen
Converting all doubles to integer is 1 solution, when you have arithmetic operations to do, nothing less, nothing more.
Here the conclusion from the test :
@nicholishen is not happy with that for some mysterious reason, so he started to become mad or something.I PROVED that doubles and integers perform the exact same with a benchmark. Alain is conveniently ignoring the evidence.
Seriously ?
Yes.
In a straight up benchmark of <int> vs <double> (no conversions)...
...with (1) arithmetic operation and (1) comparison operation...
...why is <int> NOT faster than<double>?
I PROVED that doubles and integers perform the exact same with a benchmark. Alain is conveniently ignoring the evidence.
That's not serious. I posted (and Fernando too) the code to run, the results, using arithmetic operations. Using int is way faster, and even more with mql5 than with mql4.
Can you admit that ? If not please say us what is wrong in the posted code.
Yes.
In a straight up benchmark of <int> vs <double> (no conversions)...
...with (1) arithmetic operation and (1) comparison operation...
...why is <int> NOT faster than<double>?
Checking...