Discussion of article "Library for easy and quick development of MetaTrader programs (part XI). Compatibility with MQL4 - Position closure events"

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
209906
MetaQuotes Software Corp.  

New article Library for easy and quick development of MetaTrader programs (part XI). Compatibility with MQL4 - Position closure events has been published:

We continue the development of a large cross-platform library simplifying the development of programs for MetaTrader 5 and MetaTrader 4 platforms. In the tenth part, we resumed our work on the library compatibility with MQL4 and defined the events of opening positions and activating pending orders. In this article, we will define the events of closing positions and get rid of the unused order properties.

Now the events of partial closure and pending order removal are defined as separate events.

Launch the EA once again and click the buttons observing the definition of events:


As we can see, the events are defined correctly. A close by event is defined, modifications of stop levels and pending order prices are also tracked.

Author: Artyom Trishkin

To add comments, please log in or register