New article Library for easy and quick development of MetaTrader programs (part XXIX):
Pending trading requests - request object classes has been published:
In the previous articles, we checked the concept of pending trading requests. A pending request is, in fact, a common trading order
executed by a certain condition. In this article, we are going to create full-fledged classes of pending request objects — a base
request object and its descendants.
In the three previous articles, we checked the concept of managing trading methods of the trading class using pending requests. A
pending request is, in fact, a common trading order executed by a certain condition. We checked the condition of delaying sending a
trading order in trading methods when receiving the server error whose handling requires some waiting before resending the request to
the server. Naturally, these are not all the conditions, under which pending requests can be used. Conditions may also include price
levels, upon reaching which a trade order is sent. It may also be a combination of conditions, for example, some threshold values of
symbol properties. Upon reaching these values, a trading order is sent to the server (a stop limit order is a good example of a pending
trading request for placing a limit order when the price reaches a stop order level).
Author: Artyom Trishkin