OrderSelect and OrderOpenPrice(); doesn't return open price for all position

 
doesn't return open price for all position, it is only give me the price for first position,
what can i do for make it give me open price for all position which Ticket (1)
I hope it's clear
if(OrderSelect(1,SELECT_BY_TICKET)==true)_OOP_1 = OrderOpenPrice();

            
 
You need to use loop and I see no loop is used here.
 
thanks . just give me example 
 
Schopenhauer:
thanks . just give me example 
Loops and Closing or Deleting Orders
 
   for (int i=1; i<=OrdersTotal(); i++)       //Cycle for all orders..
     {                                        //displayed in the terminal
      if(OrderSelect(i-1,SELECT_BY_POS)==true)//If there is the next one
       
     }      
if(OrderSelect(1,SELECT_BY_TICKET)==true)_OOP_1 = OrderOpenPrice();

How can I get OpenPrice result with this Loop

to get always last order (1) result  

!!! 

 
ANY ONE CAN HELP ME
 
If you explained clearly what you want, then maybe somebody will be able to help you.
 

 look into the documentation the way to use Array


 double OOP[30];

  
 for (int i=0; i<OrdersTotal(); i++)       
     {                                       
      if(OrderSelect(i,SELECT_BY_POS)==true) OOP[i] = OrderOpenPrice();
       
     }   
Reason: