problem compile after #property strict
-
hi after insert new line with #property strict, my expert advisor give me 7 errors and 118 warnings. can you check?
i attack file.mql4 -
I'm sure that there are warnings and even errors in strict mode
MQL4 is limited language and becomes stupidly limited in strict mode in my opinion. -
Ok. But you can help me to resolve?
-
Just don't use this strict mode. If I have to fix all these warnings and errors... who knows, maybe I will break some functionality here and there. For examle, there is one parameter called "Group #", which is always a numeric value and should be "int", but I changed it to "string" so people can use values like 1,2,3,4 to select multiple Group numbers for the same block. When string with value of "1" is used somewhere in the code as numeric value, MQL4 translates it into 1, but in strict mode it will print warning. I can't stop MetaEditor from throwing these warnings, but I will not break this functionslity (and others) only because some warnings

-
Today I decided to clear some errors and now MQL4 files are generated in strict mode. Also because I optimized some code, now backtests are little bit faster (well, it depends what blocks are used)