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

Structure to send trade requests to the server. More...

#include <objects.hpp>

Public Attributes

int32_t action = 0
 Trade operation type (TradeAction)
 
int64_t magic = 0
 Expert Advisor ID (magic number)
 
int64_t order = 0
 Order ticket.
 
std::string symbol = ""
 Trade symbol.
 
double volume = 0.0
 Requested volume for a deal in lots.
 
double price = 0.0
 Price.
 
double stoplimit = 0.0
 StopLimit level of the order.
 
double sl = 0.0
 Stop Loss level of the order.
 
double tp = 0.0
 Take Profit level of the order.
 
int64_t deviation = 0
 Maximal possible deviation from the requested price.
 
int32_t type = 0
 Order type (OrderType)
 
int32_t type_filling = 0
 Order execution type (OrderFilling)
 
int32_t type_time = 0
 Order expiration type (OrderTime)
 
int64_t expiration = 0
 Order expiration time.
 
std::string comment = ""
 Order comment.
 
int64_t position = 0
 Position ticket.
 
int64_t position_by = 0
 The ticket of an opposite position.
 

Detailed Description

Structure to send trade requests to the server.


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