しゅーれい #: After a lot of testing, I have good news for you all! If you write like this if you call it like this, it seems to refer to the resource I don't know why, and I don't know where this information is located, but it worked anyway. Do not use this traditional writing style "::Indicators/Original/Sample.ex5"
I suggest you read the documentation again. You supposed to use a double back-slash "\\" and not a forward slash "/".
Working with custom indicators included as resources
One or several custom indicators may be necessary for the operation of MQL5 applications. All of them can be included into the code of an executable MQL5 program. Inclusion of indicators as resources simplifies the distribution of applications.
Below is an example of including and using SampleIndicator.ex5 custom indicator located in terminal_data_folder\MQL5\Indicators\ directory:
1) this problem appeared after a MT5 release around October last year (I cant' tell which one exactly as we cannot use those versions again). I have been using resource loading to load my indicators when the EA starts up since Sept/2019 and I had no issues until those MT5 releases
2) If I remove all ex5 resources from the project (in the navigator window) and compile the project again, I'm able to start the EA and load my indicators. However, if I compile the project after this (it doesn't matter if I make changes or not to code), the error comes again. Then I have to repeat the process of removing all .ex5 files and compiling the project again to have this working again
SOLVED: For all the friends who are still going through the same problem; I spent hours trying to solve this problem and the definitive solution was to install a new and updated MT5 terminal directly from the official website. All errors are gone and the code is compiled and executed successfully.
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.
After a lot of testing, I have good news for you all!
If you write like this
if you call it like this, it seems to refer to the resource
I don't know why, and I don't know where this information is located, but it worked anyway.
Do not use this traditional writing style
"::Indicators/Original/Sample.ex5"
I suggest you read the documentation again. You supposed to use a double back-slash "\\" and not a forward slash "/".
Working with custom indicators included as resources
Hi Davi,
I don't think this is the solution because:
1) this problem appeared after a MT5 release around October last year (I cant' tell which one exactly as we cannot use those versions again). I have been using resource loading to load my indicators when the EA starts up since Sept/2019 and I had no issues until those MT5 releases
2) If I remove all ex5 resources from the project (in the navigator window) and compile the project again, I'm able to start the EA and load my indicators. However, if I compile the project after this (it doesn't matter if I make changes or not to code), the error comes again. Then I have to repeat the process of removing all .ex5 files and compiling the project again to have this working again
This is the solution, i tried it myself.
my solution to this problem was simple:
change resource folder to match the folder the EA is located at. use the "::ExampleIndicator.ex5" in the iCustom call on the onInit function.
this solved the problem for me