Is possible to sort OrdersHistoryTotal() by symbol ?

 
I want to get history data by symbol using an EA ? Is it possible ? If yes, can you suggest a code ?
 
Davidafx:
I want to get history data by symbol using an EA ? Is it possible ? If yes, can you suggest a code ?
There is no need,  loop through all your Orders, check their OrderSymbol(),  only work wit the ones that match what you are interested in.
 
   for(int cnt = 0 ; cnt <= OrdersHistoryTotal() ; cnt++)
   {
      OrderSelect(cnt, SELECT_BY_POS, MODE_HISTORY);
      if (OrderSymbol()== "EURUSD")
      {
         //DO SOMETHING
        
      }
   }
Reason: