Screening already read symbols in history and storing into array.

 
void GetHistoryPairs()
{

int find = 0;
int i = 0;
string symbol[];

   for( i=0;i<OrdersHistoryTotal();i++)
     {
      if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY))
         {
            Print("Symbol: ",OrderSymbol());
            
            ArrayResize(symbol,i+1,0);
            if(SymbolAlreadyRead == true) continue;
            symbol[i] = OrderSymbol();
            Print("Symbols : ", symbol[i]);
            

         }
      
     
     }
   
}

Hello everyone, I'm trying to add a dynamic button to my telegram bot in order to give stats for single symbol if requested. What i'm now trying to do is to get a button for every single symbol in OrdersHistoryTotal(). 

Obviously I came accross the fact that in the history there is of course more than one operation for same symbol.

What i was wondering is: 

-is there any way I can skip symbols that have been read already? 

-if yes how? 

-if no, how can i work-around this? 

What I'm basically asking is : is there anyway to remove equals elements out of an array?

Thanks in advance


this is the draft of the code that i'm trying to use. Is it possible to make it any like this: 

 
This is MQL4. You can use CArrayString for this. Check with Search(), if not found then insert the symbol and sort the list, e.g. with InsertSort().