Skip to content

CDealInfo

CDealInfo

CDealInfo is a class for easy access to the deal properties.

Description

CDealInfo class provides access to the deal properties.

Declaration

class CDealInfo : public CObject

Title

#include <Trade\DealInfo.mqh>

Inheritance hierarchy

CObject

CDealInfo

Class methods by groups

Access to integer type properties
OrderGets the order by which the deal is executed
TimeGets the time of deal execution
TimeMscReceives the time of a deal execution in milliseconds since 01.01.1970
DealTypeGets the deal type
TypeDescriptionGets the deal type as a string
EntryGets the deal direction
EntryDescriptionGets the deal direction as a string
MagicGets the ID of expert, that executed the deal
PositionIdGets the ID of position, in which the deal was involved
Access to double type properties
VolumeGets the volume of deal
PriceGets the deal price
CommisionGets the amount of commission of the deal
SwapGets the amount of swap when position is closed
ProfitGets the financial result of deal
Access to text properties
SymbolGets the name of deal symbol
CommentGets the deal 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
Selection
TicketGets ticket/selects the deal
SelectByIndexSelects the deal by index

Methods inherited from class CObject

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

Last updated on