MQL5: Working with Orders

MQL5 working with orders

Metatrader 5 is gaining more and more popularity. For developers of trading experts and forex indicators, it is interesting first of all because of its colossal new capabilities. Since MQL5 (the programming language in MT5) differs somewhat from the one familiar to us from MT4, at numerous requests we are starting a new series of lessons dedicated to MQL5 and directly to writing advisors, scripts, and indicators for the Metatrader 5 terminal. In the first lesson there will be a bit of introductory material, and we will also examine working with orders.

Homework Assignment

MQL5 homework assignment

As a homework assignment, I suggest writing a method of the Order class that will allow partially closing the position of an open order, that is, if you have an open position of 0.5 lots, then the function should allow closing, for example, 0.13 lots of the open order. The answer to the homework assignment will be published on the forum together with lesson number 2 on MQL5:

Respectfully, Sergey aka xbms TradeLikeaPro.ru

Metatrader 5 is gaining more and more popularity. Metatrader 5 is gaining more and more popularity.