Download MetaTrader 5
To add comments, please log in or register
Download documentation as one file. It is easy!
Mohammad Soubra
24574
Mohammad Soubra 2016.03.03 00:07 

Hi

:)

 

as you see below

I need a code that can select the history positions

the OrderSelect() function is only selecting the current active trades... 


 

 

 

 

Thanks for all 

Alain Verleyen
Moderator
30635
Alain Verleyen 2016.03.03 08:16  

You should read the documentation, third parameter :

pool=MODE_TRADES

[in]  Optional order pool index. Used when the selected parameter is SELECT_BY_POS. It can be any of the following values:

MODE_TRADES (default)- order selected from trading pool(opened and pending orders),
MODE_HISTORY - order selected from history pool (closed and canceled order).

OrderSelect - Trade Functions - MQL4 Reference
OrderSelect - Trade Functions - MQL4 Reference
  • docs.mql4.com
OrderSelect - Trade Functions - MQL4 Reference
Mohammad Soubra
24574
Mohammad Soubra 2016.03.03 08:20  
Alain Verleyen:

You should read the documentation, third parameter :

Oh.....
Thank you Alain
you are the best
:)
/
To add comments, please log in or register