Using iCustom with custom indicator errors but works?

 

Hi All

I have tried alot of things but i cannot get around this error when using iCustom to load a value from a custom indicator, the value is loaded as I can see from the Print but always an error before hand: ' executable file is corrupted. Please recompile it.'

As ive mentioned the result of the test print using the iCustom method is showing as I expect but due to error my expert advisor cant seem to use the data?

The executable does not come with an mql4 file soo i cannot recompile it but I dont understand how the value is received correctly but theres this error. Below is my code and logs:

Print code:

Print("TEST " + iCustom(_Symbol,PERIOD_M15,"fma.ex4",10,-1,0,0,1,0,1,1));

Please see attached images

Any help would be greatly appreciated!

Kind regards

Step on New Rails: Custom Indicators in MQL5
Step on New Rails: Custom Indicators in MQL5
  • www.mql5.com
I will not list all of the new possibilities and features of the new terminal and language. They are numerous, and some novelties are worth the discussion in a separate article. Also there is no code here, written with object-oriented programming, it is a too serous topic to be simply mentioned in a context as additional advantages for developers. In this article we will consider the indicators, their structure, drawing, types and their programming details, as compared to MQL4. I hope that this article will be useful both for beginners and experienced developers, maybe some of them will find something new.
 
The message " executable file is corrupted. Please recompile it." simply means the ex4 of the indicator file is tooooo old.

To do what is written in the error message:

  1. Open the source code in the editor
  2. Press F7.
  3. Now it should work (unless there are other problems)

 
Carl Schreiber #:
The message " executable file is corrupted. Please recompile it." simply means the ex4 of the indicator file is tooooo old.

To do what is written in the error message:

  1. Open the source code in the editor
  2. Press F7.
  3. Now it should work (unless there are other problems)

Hi Carl

Thanks for reply, soo I cannot recompile this code as i do not have an mq4 file with the ex4 file, it is just the ex4 file, I do believe the file is quite old yes, the modified mark is 2018

Kind regards
Paul

 
Paul Manzi #: soo I cannot recompile this code as i do not have an mq4 file

Then you can't use it.