PzTrading:
A deal can be IN or OUT (eventually IN/OUT). A deal can't be "open" or "close", only a position can. So what are you trying to do exactly ?
Good morning,
I am having a hard time iterating deals from an EA. I would like to get only those deals which are currently open (several symbols, not related to one position).
Is there an easy way to do so? Iterating all deals does not seem efficient. Thanks in advance!
PzTrading:
Good morning,
I am having a hard time iterating deals from an EA. I would like to get only those deals which are currently open (several symbols, not related to one position).
Is there an easy way to do so? Iterating all deals does not seem efficient. Thanks in advance!
HistoryDealGetInteger(Ticket, DEAL_ENTRY); > those that are sentPositionGetInteger(POSITION_VOLUME); > currently opened
doshur:
Thanks!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Good morning,
I am having a hard time iterating deals from an EA. I would like to get only those deals which are currently open (several symbols, not related to one position).
Is there an easy way to do so? Iterating all deals does not seem efficient. Thanks in advance!