Download MetaTrader 5

No comments in MT4 version of my EAs - new compiler problems

To add comments, please log in or register
Grzegorz Korycki
Grzegorz Korycki  

When new MT4 terminal was in beta version, i could easily port all MQL5 apps to MQL4 without some major changes.

In the final release and releases after it - the MQL4 EAs do not have comments set up - they just display variable names. Anyone know why is that?

I'm attaching screenshots to show what i mean.

In MQL5 - comments are working

In old beta MQL4 compiler - comments are working

New MQL4 compiler (that is supposed to make code even more like compatible with MQL5) - comments are not working again.

It makes much more difficult to convert my MQL5 strategies to MQL4. I have instructions relating to names in COMMENTS not the names of variables.

Does anyone have any idea why is it like that and is there a way to add comments in new MQL compiler to MT4 programs?

MQL4 comments working

MQL5 comments working

MQL4 comments now not working

Why the regress?

Alain Verleyen
Alain Verleyen  

Add the following line in top of your code :

#property strict
To add comments, please log in or register