Saber is not a programmer. There are many programmers. There are very few algorithm developers, or those with architected skills working at a higher level of abstraction. They like to invent but do not like to code, although they can do it sometimes better than professional programmers. Programming is just a toolkit for them. They almost never take up the implementation of other people's ideas that are below the level of their ideas.
Nikolai Semko #: For obvious reasons, he won't answer.
But I'll be brave enough to answer it for him.
Saber is not a programmer. There are plenty of programmers. There are very few algorithm developers, or those with architected skills working at a higher level of abstraction. They like to invent but do not like to code, although they can do it sometimes better than professional programmers. Programming is just a toolkit for them. They almost never take up the implementation of other people's ideas that are below the level of their ideas.
As I understood, most of portal's participants are not certified programmers but have learnt the language out of necessity.
But maybe a person has a completely different interest not related to the market, and for him the market is a tool....
It turns out that there is no fast way to work with a tick array in the matrix mode. For example, your tester in the matrix mode will be inferior in speed to your tester in the normal mode, because the latter does not spend resources to create and transfer the initial tick array.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
What's your favourite activity?
For obvious reasons, he won't answer.
As I understood, most of portal's participants are not certified programmers but have learnt the language out of necessity.
But maybe a person has a completely different interest not related to the market, and for him the market is a tool....
If the Expert Advisor uses data from a file, there are several ways to pass it to the Agents.
Each has its pros and cons, so let's also measure the efficiency in case of optimisations.
For this purpose, I enabled seven local Agents on the mat. mode, sandboxes of which are located on RAMDrive.
Cloud - tester_file.
.
Efficiency.
Local Agents - COMMON-file.
.
Efficiency.
Local Agents - #resource.
.
Efficiency.
Bottom line.
Efficiency.
0 seconds
If you need it fast and without Cloud - #resource is the most efficient way to transfer data to Agents.
Other options are terribly slow even on RAMDrive, because allocating memory for a dynamic data array on each pass is very expensive.
If you need a lot of data, it is quite ambiguous that it makes sense to mess with the Cloud.
OnTester results on all variants coincided - 1368151. Just in case the cache was manually deleted before launching.
Need fast and no Cloud - #resource is the most efficient way to transfer data to Agents.
Unfortunately, in addition to the size limit (sizeof(#resource) < 128Mb) recompilation is required with new data as it is stitched into EX5.
If you need a lot of data, it is quite ambiguous that it makes sense to mess with the Cloud.
Forum on trading, automated trading systems and testing trading strategies
Peculiarities of mql5 language, subtleties and techniques of work
fxsaber, 2025.01.22 11:09 AM
Cloud - tester_file.
Efficiency.
Why the hell the following change speeds up optimisation almost three times!
Why does FileLoad to a dynamic array run slower than to a static array?
Why the hell does the next change speed up optimisation by almost three times!
Why is FileLoad to a dynamic array slower than to a static array?
I'll assume that the global array is allocated once, since the Expert Advisor is loaded once (unless the ExpertRemove function was called).
The dynamic array will be allocated on each pass.
I assume that the global array is allocated once, because the Expert Advisor is loaded once (unless the ExpertRemove function was called).
The dynamic array will be allocated on each pass.
It's a pity that working with data in mat mode is more theory than practice.
Why is FileLoad to a dynamic array slower than to a static array?
I think, just not optimal reserve in ArrayResize is used inside FileLoad.