New article Orders, Positions, and Deals in MetaTrader 5 is published:
Creating a robust trading robot cannot be done without an understanding of the mechanisms of the MetaTrader 5 trading system. The client terminal receives the information about the positions, orders, and deals from the trading server. To handle this data properly using the MQL5, it's necessary to have a good understanding of the interaction between the MQL5-program and the client terminal.
How to select history orders/ deals/ position by incremental indexing.
for(uint i = uint(HistoryDealsTotal()-1); i >= 0; i--)
if(deal.SelectByIndex(i) == true)
Is it possible?
Thanks for your interesting article
Forum on trading, automated trading systems and testing trading strategies
Discussion of article "Orders, Positions, and Deals in MetaTrader 5"
Tanvir Ahmed, 2017.10.21 16:52