Hey,
I'm using MT4 Build 1090 and MetaEditor V5 Build 1601. I need to automatically recompile some MT4 indicators every now and then. To do this, I wrote a little script which gets called periodically via Windows Task Planner:
This works fine so far. The log file output says it was compiled successfully, 0 warnings, 0 errors. However, when I try and put the Indicator on a chart, it happens every so often that it doesn't work. Instead the Experts tab shows an error:
So I have to recompile the Indicator again and then it works. Sometimes not, and I have to recompile again and again and again, until it works.
I already tried it on a different computer, different OS (Windows 7, Windows 10, ...). Same result. Sometimes it works, sometimes it doesn't.
Do you have any idea whats wrong here and why it seems to produce an "invalid" EX4 file so often? Is there anything I can do to avoid this problem?
Thanks in advance.
I'm using MT4 Build 1090 and MetaEditor V5 Build 1601. I need to automatically recompile some MT4 indicators every now and then. To do this, I wrote a little script which gets called periodically via Windows Task Planner:
Inserted Code
@echo off C:\Program Files (x86)\SomeBrokerName\metaeditor.exe /compile:...\MetaQuotes\Terminal\...\MQL4\Indicators\MyIndicator.mq4" /log
Inserted Code
Cannot load "C:\...\AppData\Roaming\MetaQuotes\Terminal\...\MQL4\Indicators\MyIndicator.ex4"
I already tried it on a different computer, different OS (Windows 7, Windows 10, ...). Same result. Sometimes it works, sometimes it doesn't.
Do you have any idea whats wrong here and why it seems to produce an "invalid" EX4 file so often? Is there anything I can do to avoid this problem?
Thanks in advance.