That's nothing. :)
Try this:
#property strict void OnStart() { trash t; // compiler: variable 't' not used Print("hello"); // MT4: invalid EX4 file (8), global initialization failed }
lippmaje:
That's nothing. :)
Try this:
'trash' - unexpected token, probably type is missing?
Not so tough compared to mine I guess. 😂
What's your build? I compiled it with 1220. Anyway, just a glimpse into MQL's odd handling of keywords. You did notice it's highlighted in blue?
What is this all about ?
It seems it became more than an habit to blame others or the compiler for one own mistakes ?
In future please post in the correct section
I will move your topic to the MQL4 and Metatrader 4 section.
Keith Watford:
In future please post in the correct section
I will move your topic to the MQL4 and Metatrader 4 section.
It's Mt5. I never used mt4 in my life. Lol!
Nelson Wanyama:
It's Mt5. I never used mt4 in my life. Lol!
Does MQL5 have
#property strict
?
Keith Watford:
Does MQL5 have
?
No. It can be in the code but it's of no use.
I still don't see the point of this topic.
![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
I know this code is not syntactically correct. But just try compiling it then post your comment.