Migrating from MQL4 to MQL5 - Problem 3!
Seems you are again compiling this as mql4 code, while ..._STOP_LIMIT only exist in mql5.
Alain Verleyen:
Seems you are again compiling this as mql4 code, while ..._STOP_LIMIT only exist in mql5.
Seems you are again compiling this as mql4 code, while ..._STOP_LIMIT only exist in mql5.
AGAIN - I am using the editor for MQL5!!
Just look at the first problem. It won't compile for MQL4 - convinced?
Carl Schreiber:
AGAIN - I am using the editor for MQL5!!
Just look at the first problem. It won't compile for MQL4 - convinced?
Quite stubborn huh ?
mq4 file is mql4 code.
As I wrote elsewhere, the MQL5 editor saves mq4 files when compiled as mq4 instead of mq5 file - that is what I was not expecting!
From MQL4 I took and adapted myDefs.mqh e.g. this function that returns the order type in a unified text form:
Again myDefs.mqh compiles with no error!!
But as soon as an indicator loads this file and is compiled the compiler grumbles:
Of course I have checked, copied and pasted them from the reference to have no typo??
So