BBSTRADER 2.4.0
Loading...
Searching...
No Matches
MT5::TradeOrder Struct Reference

Represents an active or historical order. More...

#include <objects.hpp>

Public Attributes

int64_t ticket
 Order ticket.
 
int64_t time_setup
 Order setup time.
 
int64_t time_setup_msc
 Order setup time in msc.
 
int64_t time_done
 Order execution/cancellation time.
 
int64_t time_done_msc
 Order execution/cancellation time in msc.
 
int64_t time_expiration
 Order expiration time.
 
int32_t type
 Order type.
 
int32_t type_time
 Order lifetime.
 
int32_t type_filling
 Order filling type.
 
int32_t state
 Order state.
 
int64_t magic
 Expert Advisor ID.
 
int64_t position_id
 Position identifier.
 
int64_t position_by_id
 Identifier of opposite position.
 
int32_t reason
 Reason for order placement.
 
double volume_initial
 Initial volume.
 
double volume_current
 Current volume.
 
double price_open
 Price specified in the order.
 
double sl
 Stop Loss price.
 
double tp
 Take Profit price.
 
double price_current
 Current price of the symbol.
 
double price_stoplimit
 StopLimit price.
 
std::string symbol
 Symbol name.
 
std::string comment
 Order comment.
 
std::string external_id
 External system ID.
 

Detailed Description

Represents an active or historical order.


The documentation for this struct was generated from the following file: