MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Trading functions  OrderOpenPrice

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
double OrderOpenPrice( )
Returns open price for the currently selected order.
Order must be first selected by the OrderSelect() function.
Sample:
  if(OrderSelect(10, SELECT_BY_POS)==true)
    Print("open price for the order 10 ",OrderOpenPrice());
  else
    Print("OrderSelect returned the error of ",GetLastError());