Download MetaTrader 5

Discussion of article "Orders, Positions, and Deals in MetaTrader 5"

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

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.

Author: MetaQuotes

Amine Ahsous
5752
Amine Ahsous  

Very Helpful 

Thank you  

Tanvir Ahmed
417
Tanvir Ahmed  

How to select history orders/ deals/ position by incremental indexing.

Such as:

    for(uint i = uint(HistoryDealsTotal()-1); i >= 0; i--)
    {
    if(deal.SelectByIndex(i) == true)
    {
    //--my data
    }
    }

Is it possible? 

Simalb
59
Simalb  

Thanks for your interesting article 

fxsaber
10945
fxsaber  

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

    for(uint i = uint(HistoryDealsTotal()-1); i >= 0; i--)
    {
    if(deal.SelectByIndex(i) == true)
    {
    //--my data
    }
    }

Infinite loop!

lukee_wu
5
lukee_wu  
MetaQuotes Software Corp.:

New article Orders, Positions, and Deals in MetaTrader 5 is published:

Author: MetaQuotes


very helpful!!!!!!!thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1

To add comments, please log in or register