High-Quality Opening and Modification of Orders

Mql programming - opening and modifying orders

Greetings, gentlemen forex traders! So, many of you, after our lessons, have already started writing advisors, and, as I can see, quite good ones. However, situations periodically arise when, on a real account, a trading expert cannot open or modify an order because of server errors (the connection was lost, requotes, etc.). This leads at minimum to the loss of potential profit, and at maximum to significant losses, for example due to the fact that the advisor did not set a Stop Loss because of server errors.

So, our next MQL lesson is devoted to developing proper functions for opening and modifying orders and handling errors.

Homework

Mql homework opening and modifying orders
  • Refine the OrderSendX function so it works correctly with limit and stop orders and handle the possible errors that may arise with these orders.
  • Write the OrderCloseX function, which will also correctly close an already existing market order, of course with error handling.

Respectfully, Sergey aka xbms TradeLikeaPro.ru

So, our next MQL lesson is devoted to developing proper functions for opening and modifying orders and handling errors.