MQL4 Reference Standard Constants, Enumerations and Structures Trade Constants Order Properties

Order Properties

Operation type for the OrderSend() function. It can be any of the following values:

ID

Value

Description

OP_BUY

0

Buy operation

OP_SELL

1

Sell operation

OP_BUYLIMIT

2

Buy limit pending order

OP_SELLLIMIT

3

Sell limit pending order

OP_BUYSTOP

4

Buy stop pending order

OP_SELLSTOP

5

Sell stop pending order