Structure of order.
Name | Description |
---|---|
ticket | Ticket number |
symbol | Symbol name |
type | Order operation type |
lots | Amount of lots |
open_time | Open time |
open_price | Open price |
stoploss | Stop loss value |
takeprofit | Take profit value |
close_time | Close time |
close_price | Close price |
expiration | Expiration date |
commission | Calculated commission |
swap | Swap value |
profit | Profit |
comment | Comment |
magic | Identifying (magic) number |
- Download OrderData.mqh
- Save the file to /MQL4/Include/mql4_modules/OrderData/OrderData.mqh
Include OrderData.mqh.
You can use OrderData structure.