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
Mapping is mapping, it's just that a file object can be created directly in RAM.
I just don't understand why? Alexei clearly wrote that everything is in the init.
I repeat, I proposed it not for Alexey's problem, but as a way to speed up calculations in general)
That is, organizing a cache of sorts to use the data in subsequent iterations.
forget about this stripped-down DLL from it.
You have a fully functional version to work with mapping.
And how do you propose to do it - without referring to coding external to MQL4?
I already suggested - through files. But it's long and bothersome.
The set of parameters in memory will be associated with a certain result.
You can even make the mapping trickier, like this:
DateTime - {Calculation parameters} - Result[s].
This already caches calculations on every bar.
Fuck mapping and files. What we need is associative storage.
forget about this stripped-down DLL from it.
You have a fully functional version to work with mapping.
Asked how without a dll.
OK, never mind. It's easier to make heavy C/C++ computations and speed up execution by several times using SSE*, Open MP and IPP. And instead of 10 seconds on MQL4 you'll get 1 second - even on my budget dual-core.
I asked him how he could work without dll.
Okay, never mind. It's easier to implement heavy computations in C/C++ and speed up execution by several times using SSE*, Open MP and IPP. And instead of 10 seconds in MQL4 you'll get 1 second - even on my budget dual core.
MQL5 is 20 times faster than MQL4.
C++ is 6 times faster than MQL5 (when using libraries that automatically parallelize execution).
Total: 20*6=120 times.
If you use GPU calculations, it will be even faster.
TOTAL: 10/120=0.083c.
something like this.
MQL5 is 20 times faster than MQL4.
I would like to believe it. But in practice optimization in a multicore CPU in MT5 is much slower than single-threaded optimization in MT4.
It is quite possible that it only seems as if the code in MT5 is barely wiggling?
I should take some benchmark-algorithm and use it in the start() function of MT4 and OnTick() of MT5 and run it on a single core in Expert Advisors with one dummy input parameter changing from 0 to 9999 without genetics to make sure more exactly. But where to get this single core?
Except that in practice optimization on a multi-core CPU in MT5 is noticeably slower than single-threaded optimization in MT4.
No, this is a tester. Before the Championship we measured the run time - the run time of an economical light Expert Advisor was much less than the time spent for testing.
However this information is not 100%, I may lie, I do not remember.