What's the int value of every ENUM_TRADE_TRANSACTION_TYPE ?

Para adicionar comentários, por favor Faça o login ou registrar
felipeforexmj
39
felipeforexmj  

The  ENUM_TRADE_TRANSACTION_TYPE  is composed of

TRADE_TRANSACTION_ORDER_ADD
TRADE_TRANSACTION_ORDER_UPDATE
TRADE_TRANSACTION_ORDER_DELETE
TRADE_TRANSACTION_DEAL_ADD
TRADE_TRANSACTION_DEAL_UPDATE
TRADE_TRANSACTION_DEAL_DELETE
TRADE_TRANSACTION_HISTORY_ADD
TRADE_TRANSACTION_HISTORY_UPDATE
TRADE_TRANSACTION_HISTORY_DELETE
TRADE_TRANSACTION_POSITION

TRADE_TRANSACTION_REQUEST

 

https://www.mql5.com/en/docs/constants/tradingconstants/enum_trade_transaction_type

 

The MqlTradeTransaction returns in its structure the ENUM_TRADE_TRANSACTION_TYPE

I can get the int type of this ENUM_TRADE_TRANSACTION_TYPE but I don't find anywhere the int value of the ENUM_TRADE_TRANSACTION_TYPE

 Is the following? 

 

0 -> TRADE_TRANSACTION_ORDER_ADD
1 -> TRADE_TRANSACTION_ORDER_UPDATE
2 -> TRADE_TRANSACTION_ORDER_DELETE
3 -> TRADE_TRANSACTION_DEAL_ADD
4 -> TRADE_TRANSACTION_DEAL_UPDATE
5 -> TRADE_TRANSACTION_DEAL_DELETE
6 -> TRADE_TRANSACTION_HISTORY_ADD
7 -> TRADE_TRANSACTION_HISTORY_UPDATE
8 -> TRADE_TRANSACTION_HISTORY_DELETE
9 -> TRADE_TRANSACTION_POSITION

10 -> TRADE_TRANSACTION_REQUEST 


Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Trade Transaction Types
Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Trade Transaction Types
  • www.mql5.com
Standard Constants, Enumerations and Structures / Trade Constants / Trade Transaction Types - Reference on algorithmic/automated trading language for MetaTrader 5
warlleysales
508
warlleysales  
felipeforexmj:

The  ENUM_TRADE_TRANSACTION_TYPE  is composed of

TRADE_TRANSACTION_ORDER_ADD
TRADE_TRANSACTION_ORDER_UPDATE
TRADE_TRANSACTION_ORDER_DELETE
TRADE_TRANSACTION_DEAL_ADD
TRADE_TRANSACTION_DEAL_UPDATE
TRADE_TRANSACTION_DEAL_DELETE
TRADE_TRANSACTION_HISTORY_ADD
TRADE_TRANSACTION_HISTORY_UPDATE
TRADE_TRANSACTION_HISTORY_DELETE
TRADE_TRANSACTION_POSITION

TRADE_TRANSACTION_REQUEST

 

https://www.mql5.com/en/docs/constants/tradingconstants/enum_trade_transaction_type

 

The MqlTradeTransaction returns in its structure the ENUM_TRADE_TRANSACTION_TYPE

I can get the int type of this ENUM_TRADE_TRANSACTION_TYPE but I don't find anywhere the int value of the ENUM_TRADE_TRANSACTION_TYPE

 Is the following? 

 

0 -> TRADE_TRANSACTION_ORDER_ADD
1 -> TRADE_TRANSACTION_ORDER_UPDATE
2 -> TRADE_TRANSACTION_ORDER_DELETE
3 -> TRADE_TRANSACTION_DEAL_ADD
4 -> TRADE_TRANSACTION_DEAL_UPDATE
5 -> TRADE_TRANSACTION_DEAL_DELETE
6 -> TRADE_TRANSACTION_HISTORY_ADD
7 -> TRADE_TRANSACTION_HISTORY_UPDATE
8 -> TRADE_TRANSACTION_HISTORY_DELETE
9 -> TRADE_TRANSACTION_POSITION

10 -> TRADE_TRANSACTION_REQUEST 


Good evening Felipe!

It is right!
Para adicionar comentários, por favor Faça o login ou registrar