#resource - page 2

 

You wrote"

What I find strange is that if I replace

 #resource "\\Indicators\\Ressources\\Dev - Dev Team - Directed MA MTF.ex5" ;
 string                    g_Path_MA      = "::Indicators\\Ressources\\Dev - Dev Team - Directed MA MTF" ;
by
 string                    g_Path_MA      = "Ressources/Dev - Dev Team - Directed MA MTF" ;

"


Maybe the lack of ".ex5" in your string makes the difference?

 

Hello
After testing, I think I have isolated my problem and I don't have a solution.

- Rename resources, without spaces and other characters, no
- move the order of icustom, no

add another indicator via another icustom, works

I come to the conclusion that it is really this indicator that does not want to go there.
What makes him different from the others?
It includes an "include" itself.

it itself includes another external indicator.

It just shouldn't be tolerated.

 
Fernando Carreiro # :
It has nothing to do with any resource limitations.

So there are indeed limitations to resources. You just have to know that.

 
I would quickly solve this problem, but I don't get paid for it
 
Gerard William G J B M Dinh Sy #:

So there are indeed limitations to resources. You just have to know that.

not by resources, but by the memory they require
 
Dz Mak #:
I would quickly solve this problem, but I don't get paid for it

No thx

 
Gerard William G J B M Dinh Sy #: So there are indeed limitations to resources. You just have to know that.

When reporting any issue, it is customary to provide sample code and/or instructions on how to fully replicate it outside of the user’s own influence. A partial explanation with incomplete code is not enough for others to replicate.

This will allow others to test the situation in order to prove or disprove it, and for the matter to be taken seriously. Failure to do so, means that the situation will inevitable be ignored and assumed to be caused by the user’s lack of knowledge or skill, instead of a problem with the platform or application.

 
Gerard William G J B M Dinh Sy #:

Hello
After testing, I think I have isolated my problem and I don't have a solution.

- Rename resources, without spaces and other characters, no
- move the order of icustom, no

add another indicator via another icustom, works

I come to the conclusion that it is really this indicator that does not want to go there.
What makes him different from the others?
It includes an "include" itself.

it itself includes another external indicator.

It just shouldn't be tolerated.

You need to fix your code, an indicator included as a resource which include itself an other indicator need a special processing.

Look in the documentation how to do.

 
Alain Verleyen # :
Look in the documentation how to do

Good morning
THANKS

I'm not sure.
should we use the GetRelativeProgramPath() function which is an example in the doc?

 //+------------------------------------------------------------------+
 //| GetRelativeProgramPath                                           |
 //+------------------------------------------------------------------+
 string GetRelativeProgramPath()
  {
   int pos2;
 //--- get the absolute path to the application 
   string path=MQLInfoString(MQL_PROGRAM_PATH);
 //--- find the position of "\MQL5\" substring 
   int     pos =StringFind(path, "\\MQL5\\" );
 //--- substring not found - error 
   if (pos< 0 )
       return (NULL);
 //--- skip "\MQL5" 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 MQL5 subdirectory (for example, MQL5\Indicators)
 //--- if not found, return the path relative to MQL5 directory 
   if ((pos2=StringFind(path, "\\" ,pos+ 1 ))< 0 )
       return (StringSubstr(path,pos));
 //--- return the path relative to the subdirectory (for example, MQL5\Indicators) 
   return (StringSubstr(path,pos2+ 1 ));
  }


If not, give me some keywords so I can narrow down the search, thanks.