MQL4 Book Appendixes
Types of
Trades
Types of Trades
A trade type in the OrderSend() function can be indicated as a predefined constant or as its value according to a trade type:
Constant | Value | Trading Operation |
---|---|---|
OP_BUY | 0 | Buy |
OP_SELL | 1 | Sell |
OP_BUYLIMIT | 2 | Pending order BUY LIMIT |
OP_SELLLIMIT | 3 | Pending order SELL LIMIT |
OP_BUYSTOP | 4 | Pending order BUY STOP |
OP_SELLSTOP | 5 | Pending order SELL STOP |