New article Library for easy and quick development of MetaTrader programs (part III). Collection of market orders and positions, search and sorting has been published:
In the first part, we started creating a large cross-platform library simplifying the development of programs for MetaTrader 5 and MetaTrader 4 platforms. Further on, we implemented the collection of history orders and deals. Our next step is creating a class for a convenient selection and sorting of orders, deals and positions in collection lists. We are going to implement the base library object called Engine and add collection of market orders and positions to the library.
Here we are going to create a class for a convenient selection and
sorting of orders, deals and positions in collection lists, implement
the base library object called Engine and add collection of market
orders and positions to the library.
At the moment, a certain data storage structure is already
emerging. We are going to adhere to it when creating collections of
various object types:
A single Engine object will be created for storing and managing
collections, as well as for exchanging data between the program and the
library. Engine is to become the base object of the entire library.
Programs based on the library are to refer to it to obtain data.
Besides, it is to accumulate the entire library automation.
Author: Artyom Trishkin