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!
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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