Skip to content

COrderInfo

COrderInfo

COrderInfo is a class for easy access to the pending order properties.

Description

COrderInfo class provides access to the pending order properties.

Declaration

class COrderInfo : public CObject

Title

#include <Trade\OrderInfo.mqh>

Inheritance hierarchy

CObject

COrderInfo

Class methods by groups

Access to integer type properties
TicketGets the ticket of an order, previously selected for access
TimeSetupGets the time of order placement
TimeSetupMscReceives the time of placing an order in milliseconds since 01.01.1970
OrderTypeGets the order type
OrderTypeDescriptionGets the order type as a string
StateGets the order state
StateDescriptionGets the order state as a string
TimeExpirationGets the time of order expiration
TimeDoneGets the time of order execution or cancellation
TimeDoneMscReceives order execution or cancellation time in milliseconds since 01.01.1970
TypeFillingGets the type of order execution by remainder
TypeFillingDescriptionGets the type of order execution by remainder as a string
TypeTimeGets the type of order at the time of the expiration
TypeTimeDescriptionGets the order type by expiration time as a string
MagicGets the ID of expert that placed the order
PositionIdGets the ID of position
Access to double type properties
VolumeInitialGets the initial volume of order
VolumeCurrentGets the unfilled volume of order
PriceOpenGets the order price
StopLossGets the order’s Stop Loss
TakeProfitGets the order’s Take Profit
PriceCurrentGets the current price by order symbol
PriceStopLimitGets the price of a Limit order
Access to text properties
SymbolGets the name of order symbol
CommentGets the order comment
Access to MQL5 API functions
InfoIntegerGets the value of specified integer type property
InfoDoubleGets the value of specified double type property
InfoStringGets value of specified string type property
State
StoreStateSaves the order parameters
CheckStateChecks the current parameters against the saved parameters
Selection
SelectSelects an order by ticket for further access to its properties
SelectByIndexSelects an order by index for further access to its properties

Methods inherited from class CObject

: Prev, Prev, Next, Next, Save, Load, Type, Compare

Last updated on