[Deals] How to get only opened deals?
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!
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
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!