Funny, but there is no answer on this question... It seems that the problem lies on the path:
Not 'MQL4\Experts\MY_EA_NAME__1.ex4::Indicators\MY_INDICATOR_NAME.ex4' but '\Experts\MY_EA_NAME__1.ex4::Indicators\MY_INDICATOR_NAME.ex4' !
In the article stands, that the path should be without MQL4, but test system seams not to knowing that...
Looks like that in the article in the function is an error:
string GetRelativeProgramPath() { int pos2; //--- get the absolute path to the application string path=MQLInfoString(MQL_PROGRAM_PATH); //--- find the position of "\MQL4\" substring int pos =StringFind(path,"\\MQL4\\"); //--- substring not found - error if(pos<0) return(NULL); //--- skip "\MQL4" directory <== DO NOT SKIP MQL4 DIRECTORY! pos+=0; //--- skip extra '\' symbols while(StringGetCharacter(path,pos+1)=='\\') pos++; //--- if this is a resource, return the path relative to MQL4 directory if(StringFind(path,"::",pos)>=0) return(StringSubstr(path,pos)); //--- find a separator for the first MQL4 subdirectory (for example, MQL4\Indicators) //--- if not found, return the path relative to MQL4 directory if((pos2=StringFind(path,"\\",pos+1))<0) return(StringSubstr(path,pos)); //--- return the path relative to the subdirectory (for example, MQL4\Indicators) return(StringSubstr(path,pos2+1)); }
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,
I am trying to validate my EA for market, but each time I became an error, but in my system in on other systems it works fine. I think it is a problem of the test system if mql or have someone an idea what I'm doing wrong?
I used an article for resource binding in mql: https://www.mql5.com/de/articles/261