MQL4/MQL5

 

I have a quite extensive MQL5 EA that uses several Libraries

For various reasons I am doing a MQL4 version.

Under what circumstances (if ever) can I use a MQL5 library? (import a .ex5 library)?

 
Ingvar Engelbrecht:

I have a quite extensive MQL5 EA that uses several Libraries

For various reasons I am doing a MQL4 version.

Under what circumstances (if ever) can I use a MQL5 library? (import a .ex5 library)?

Not sure I get your point. Using an .ex5 with mql4 ?
 
Alain Verleyen:

Not sure I get your point. Using an .ex5 with mql4 ?

Yes. But thinking again I realized that even if I use compiler directives  (#ifdef __MQLx__) I have to recompile with the correct compiler and that makes it an ex4

So, it was a dumb question :-)

 
Reason: