cannot convert type string to bool
- New MetaTrader 4 Platform build 1030
- 'Name of EA' is not expert and cannot be executed on MT4 build 600.
- Expert Advisors: FAT PANEL
That is in reference to MT5, but the OP is reporting the issue on MT4. If that is indeed the case (as I have not tested it myself), then development on MT4 is not just bug fixes, but still has some active developed taking place. However, this may not be intentional, but just a side effect of internally shared or common code between the versions.
True, I forgot that the Compiler/Editor is common. Guess I am needed some "zzz's" and not thinking straight!
Yes, it is the same behaviour in MQL4. I surmize this is because it is a common compiler.
I doubt that as it is my experience that mql5.-compiler cannot compile e.g. DoubleToStr() /* the old mt4 function */ while the mql4 compiler already compiles both functions DoubleToStr() and DoubleToString().
Now there is only one version of MetaEditor, I'm surmizing (again) that MetaQuotes aren't going to bother to make the compiler behave differently between MQL4 and MQL5 with these sort of changes. They certainly haven't with this "feature" i.e. disabling the support for casting string types to bools.
Legacy items like DoubleToStr() and TimeToStr() had to be explicitly catered for in the past, but why would they bother differentiating now?
It would not make any sense for them to keep two separate "base" code sections for each one, if they use a single compiler. If they had, they would have done separate compilers.
This was fine before new mt4 builds but is throwing up "cannot convert type string to bool" when I try to compile now, any ideas?