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
The costs are greater unambiguously. There are two variants with unchanged indicator settings and with the same values, but already written to a file, which are dumped into an array.
The variant with the file takes many times longer to be calculated than the variant with indicator calculation in the Expert Advisor.
I was just thinking that maybe there is a way to save the array once and use it for all passes of optimization, thus relieving the load on the algorithm.
Is there a way to write and read the array that takes longer than the calculation of the indicator?
If you do this, will the array be saved when you switch to a new pass?
Yes. It's not difficult or costly. You can use the binary mode. You may not read the entire file, but start from the position you need.
Binary mode is when there are no line-to-number conversions?
I would also add that optimisation on a 1 minute chart on a large history.
include acts on compilation. Who is going to compile? Maybe this array depends on optimization parameters? So we have to generate the array before each optimization and compile it. It's a lame solution.
Binary mode is when there is no string to number conversion?
https://www.mql5.com/ru/docs/files/filereadarray
https://www.mql5.com/ru/docs/files/filewritearray
The links have examples too.
Don't make it up - the TC clearly said that the array is unchanged.
yes, you must...
Of course, if the array is always and absolutely unchangeable, it's better to include it in the Expert Advisor's code. You can do it directly in the Expert Advisor's file without include.
I haven't come across it yet. Point me in the right direction, how to do it roughly.