1 (edited by Lagoons 2018-07-09 22:44:05)

Topic: Cannot open EA - No ex4 file created - Compilation does not work.

Hello,

I've build a few portfolio EA's but none of them is working.

I'll always get the Error "cannot open ..ex4" cause it's not there.

I've tried to compile the EA manually but that didn't work either, I'll just get a bunch of error messages.
I guess I've missed something but I don't know what, the documentation does not help either.

Here what happens when I tried to compile the mq4 file.


Best regards

cannot open...
https://s8.postimg.cc/pqgfhyl4x/can_t_open.png

2 (edited by Lagoons 2018-09-30 15:03:12)

Re: Cannot open EA - No ex4 file created - Compilation does not work.

Update:

I'm stuck at Step 7, I cannot complie the mq4 file to ex4.

These are the message from MetaEditor, unfortunately no ex4 file is created.

Any support would be nice.

Best regards


https://i.postimg.cc/VdbpQY1j/Porfolio_Maker.png

Re: Cannot open EA - No ex4 file created - Compilation does not work.

Hello,

From the error messages you can see your MetaEditor can't *.mqh files.  This means you probably copied the main *.mq4 to a different MT4 installation and simply tried to compile that one file.

Building a portfolio EA requires many supporting files.  The supporting files are copied to the appropriate folders in the MT4 installation that was specified when you ran Portfolio Maker.  You must compile the main *.mq4 in that MT4 installation.  After a *.ex4 file is created then you can copy that to a different MT4 installation.

I think the documentation is pretty clear on this.  Also, others have made the same error and I have responded in this thread.

Re: Cannot open EA - No ex4 file created - Compilation does not work.

Hello again,

Sorry -- there was a typo in the first sentence.  It should have read:

"From the error messages you can see your MetaEditor can't FIND *.mqh files."

5 (edited by Lagoons 2018-09-30 20:52:45)

Re: Cannot open EA - No ex4 file created - Compilation does not work.

sleytus wrote:

Hello,

From the error messages you can see your MetaEditor can't *.mqh files.  This means you probably copied the main *.mq4 to a different MT4 installation and simply tried to compile that one file.

Hello,

yes that's exactly what my first post showed, today I used the correct MT4 installation, and I got those 4 errors "name expected".

And I don't know how to solve this.

Best regards

Re: Cannot open EA - No ex4 file created - Compilation does not work.

A more detailed view of one error:


https://i.postimg.cc/2VB57jTM/Porfolio_Maker_errors.png

7 (edited by sleytus 2018-10-01 01:40:11)

Re: Cannot open EA - No ex4 file created - Compilation does not work.

I may have spotted the problem...

In the US, a period (.) is used as a decimal point.  However, in some EU countries a comma (,) is used instead.  Since you are running Portfolio Maker within a non-English version of Windows, then Windows will use commas.  But MT4 doesn't like commas -- hence, the compilation errors you see like '02' -name expected, '06' - name expected, etc.

A couple of solutions:
1. Hand-edit the file and convert the commas to periods.
2. Temporarily switch the Windows locale from DE to US or UK.

8 (edited by Lagoons 2018-12-05 17:30:45)

Re: Cannot open EA - No ex4 file created - Compilation does not work.

Yes your're right, that was the problem, it's working now.

Thank you very much.