Learning programming for the Metatrader 5

The main difference between MQL4 and MQL5 is the appearance of the object oriented programming. So you can start learning MQL4 now, because:
- If You know MQL4 the only thing in MQL5 to change in your programs will be names of a couple of start() init() deinit() functions;
- If you know MQL4 the transition to MQL5 will be smooth;
- If you know MQL5 you will know C language as well because they are VERY close;
- Due to providing structures and other improvements in MQL5, there will be a LOT of new possibilities to merge MQL5 with any database, math, statistical packages etc.
Promised that MQL5 will be very similar to classic C / C++, except:
- Pointers;
- Goto operator;
- Anonymous enumeration;
- Address arithmetic and class inheritance;
- Some exotic staff from so-called “object-oriented programming”: classes constructors do not have parameters, no multiply inheritance etc.
Operators overload and ternary operation ( expr ? op1 : op2; ) will probably be included later.
So MQL5 will be VERY close to C. The greatest improvement are structures. If you already know some basic MQL4 programming and want to learn C++, you can start with books like C++ for Dummies. You can also use C++ BNF description.
Related posts:

