Porting between MQL4 and MQL5

 

For various reasons I want to maintain 2 versions of my EA. one MQL4 and one MQL5.

Technically it works fine with the help of the compiler directive. Practically it is a bit awkward to keep 2 versions of the source in sync since the compiler must work in 2 different environments.

 It is not only the actual source there are also includes and classes involved. I was planning on writting some REXX routines to shuffle source betwen the 2 environments but I am checking here first in case someone

has a more elegant solution.

Reason: