Did you solve it? i have also a multisymbol EA with exactly the same error..
expert file C:\Users\user\AppData\Roaming\MetaQuotes\Terminal\D0E8209F77ASG45G1D8BF550E51FF082\MQL5\.ex5 open error [2]I
You do not have a file selected. If you open that file location it will give you all of the mql5 folder. You need it to say MQL5\Experts\*ExpertName*.ex5
Claudius Marius Walter #:
Did you solve it? i have also a multisymbol EA with exactly the same error..
Did you solve it? i have also a multisymbol EA with exactly the same error..
I have found the problem in the log of the remote agents.
In my case my EA uses a custom indicator which was in DEBUG mode, while the EA was in normal mode. After recompiling my custom indicator, the remote agents run my EA properly.
So in short, check that everything your program refers to is compiled properly.
I hope this applies to your error 565 as well.
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
Hello all
I'm having a problem when running my optimization on MT5 V 5.00 built 2715 , during some runs everything works well, but other times i get this error which i cannot understand what it is!!
This one happened at the end of my passes, but sometimes it happens in the middle of passes and after couple of seconds the tester closes itself!
i think there might be a problem with the expert trying to open an indicator and not being able to find it!
in my EA, i'm trying to backtest a strategy with different set of indicators per symbol (a multi symbol expert). Too choose the best indicators per symbol, and do it as fast as possible, I created an "enum ENUM_Indicator" listing all the indicators available in my system:
enum ENUM_Indicator { absolute_strength___averages, absolutestrength_v2, Acceleration_Deceleration_AC_MTF, ... }
then I have a two structure and a function that fills the structure with each indicator parameters that are necessary:
on the OnInit(), i call a function that fills the indicators[] Array:
and for the iCustom():
So there are mulitple indicators with different parameters per each symbol. In my code "IndicatorName_2" is an input which an "ENUM_Indicator " type and i can choose to optimize EA per this position of indictor and it makes it really fast.
Previously i was getting an array out of range Error in IndicatorConstants() when calling "indicators[i]", even though i was initializing and resizing the indicators[] array before calling IndicatorConstants() , i was getting this array out of range Error. Then i added constructors to my structures and used static array when declaring and then resizing the arrays. Array out of range error was gone but after this part that ".ex5 open error [2]" began to happen.
My guess is that on some passes " indicators[i].prop[2]" doesn't get filled and consequently neither does the "IndicName_2" in the ICustom() and the tester cannot find the indicator since the default value for indicator name and folder are empty strings and that's why the Error doesn't show the name of the indicators that it fails to open.
i'm not sure if my logic to optimize indicators is correct or not, but why there's this error and why it only happens half of the times!