MQL4 Reference  Trade Functions
 Trade Functions  OrderType
  OrderType
| 
 | OrderTypeReturns order operation type of the currently selected order. 
 Returned value Order operation type of the currently selected order. It can be any of the following values: OP_BUY - buy order, Note The order must be previously selected by the OrderSelect() function. Example: 
 |