Introduction to Object-Oriented Programming, Structures

Object-oriented programming in mql4Hooray, fellow forex traders! A new terminal build has been released. Apparently, you have already felt that there is some difference between the old version of Metatrader 4 and the new one. But that is only the preface, the story will come later...

In addition to the innovations that you have already seen in this video, a lot more interesting things await you... The MQL4 language has been updated, and now we can fully use Object-Oriented Programming. This and the following lessons will be devoted to it.

Homework

mql_mini homework
  • Add information about the account currency, free margin, and the name of the active server your terminal is working with to the AccountInfo structure. Output the information in a comment.
  • Expand the Order structure by adding information about the order expiration date, order volume, and commission.
  • Create a separate structure and array that will contain information about pending orders. Output the information (ticket number, order type, price) as a comment on the screen, but this must be done through a function, passing the array address to the function (similar to ShowInfo).

Respectfully, Sergey aka xbms TradeLikeaPro.ru

Hooray, fellow forex traders! A new terminal build has been released.