Yesterday, a new version of the MetaTrader 5 platform has been released by MetaQuotes — Build 1495. Today, it has become available on some of the brokers' demo and live servers. The new build focuses on major changes to MQL5 language:
https://www.mql5.com/en/forum/53/page18#comment_3905997
If you find a bug or some undocumented feature in the new build, please post about it here.
- Removed support for casting string type to bool type. Now it is not possible to check whether a string variable is true or false — the code line trying to do that will result in compilation error. You should explicitly check the string value using StringCompare() function or other means. This change will create quite a lot of problems for the developers expert advisors and indicators.
- Added CopyTicksRange() function to receive ticks history into an array of MqlTick type for a specified date range.
- Added new methods to CCanvas class of the standard library to draw shapes with improved anti-aliasing.
- Added reference docs for the graphical functions of the standard library added in the build 1485.
- Added key press status (some keys only, e.g. Esc, Enter, NumLock, arrows, etc.) to the terminal properties. Can be retrieved with TerminalInfoInteger(TERMINAL_KEYSTATE_*) calls.
- Fixed some other bugs and errors.
https://www.mql5.com/en/forum/53/page18#comment_3905997
If you find a bug or some undocumented feature in the new build, please post about it here.