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

Represents an open position. More...

#include <objects.hpp>

Public Attributes

int64_t ticket
 Position ticket.
 
int64_t time
 Position open time.
 
int64_t time_msc
 Position open time in msc.
 
int64_t time_update
 Position last update time.
 
int64_t time_update_msc
 Position last update time in msc.
 
int32_t type
 Position type.
 
int64_t magic
 Expert Advisor ID.
 
int64_t identifier
 Position identifier.
 
int32_t reason
 Reason for position opening.
 
double volume
 Position volume.
 
double price_open
 Position open price.
 
double sl
 Stop Loss price.
 
double tp
 Take Profit price.
 
double price_current
 Current symbol price.
 
double swap
 Accumulated swap.
 
double profit
 Current floating profit.
 
std::string symbol
 Symbol name.
 
std::string comment
 Position comment.
 
std::string external_id
 External system ID.
 

Detailed Description

Represents an open position.


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