OrderSelect controls every property read
SELECT_BY_POS interprets the first argument as a pool position. SELECT_BY_TICKET interprets it as the unique ticket and ignores the pool argument. MODE_TRADES contains open and pending orders; MODE_HISTORY contains closed and deleted orders.
Property functions do not accept a ticket parameter because they read the selected order snapshot. Reselect before using price, lots, stops, or expiration in a later operation.
| Function | Primary result | Failure handling |
|---|---|---|
| OrdersTotal | Active market and pending count | Do not assume stable positions after mutation |
| OrderSelect | Loads one order snapshot | Skip all property reads on false |
| OrderSend | New ticket or -1 | Read GetLastError and broker constraints |
| OrderModify | true or false | Check changed values and freeze rules |
| OrderClose | true or false | Log ticket, price, lots, and error |
