Abubakar Saidu:
Hi.. been getting this error on mt5 cant get it working
searched for many ERROR 4807 solution..cant get a solution "code"
played with it for while still cant get it working
Thanks..
Why not add a Print() statement:
IndicatorFileName = GetRelativeProgramPath();;
Print (IndicatorFileName);
To verify whether you are sending a valid indicator name to iCustom()?
2020.03.20 07:45:31.248 tryingtoconvert(GBPUSD,M5) Not all data of mahandle is calculated (-1bars ).
Error4807
2020.03.20 07:45:31.273 tryingtoconvert(GBPUSD,M5)
only this nothing else,
actually am trying to learn and master converting any mt4 indicator.. to mt5.. am only successful in converting one from mq4-mq5 and one from mq5-mq4
without property strict
with property strict WidowsExpertName() is not working
unless this is used
Thanks a lot for your feedback
2020.03.20 07:45:31.273 tryingtoconvert(GBPUSD,M5)
only this nothing else,
actually am trying to learn and master converting any mt4 indicator.. to mt5.. am only successful in converting one from mq4-mq5 and one from mq5-mq4
without property strict
IndicatorFileName = WindowExpertName();
with property strict WidowsExpertName() is not working
unless this is used
IndicatorFileName = GetRelativeProgramPath()
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 pos+=5; //--- skip extra '\' symbols while(StringGetCharacter(path,pos+1)=='\\') pos++; //--- if this is a resource, return the path relative to MQL5 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)); }
Thanks a lot for your feedback

Documentation on MQL5: Language Basics / Preprocessor / Program Properties (#property)
- www.mql5.com
Path to the file of an image that will be used as an icon of the EX5 program. Path specification rules are the same as for resources. The property must be specified in the main module with the MQL5 source code. The icon file must be in the ICO format. When launching a script or an Expert Advisor on the chart, the stack of at least 8 MB is...

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
Hi.. been getting this error on mt5 cant get it working
searched for many ERROR 4807 solution..cant get a solution "code"
played with it for while still cant get it working
Thanks..