Download MetaTrader 5

incomplete documentation? to find out? trial and error?

To add comments, please log in or register
Deposit to your account via PayPal
Daniel Andrejczuk
1272
Daniel Andrejczuk 2016.10.24 21:50 

Hello good afternoon!


There are several functions that return numeric enumerators, however the enumerator documentation there is a description of each enumerator and not the value, for example LONG OrderGetInteger(ENUM_ORDER_STATE) the list documentation:


ORDER_STATE_STARTED Order verified but not yet accepted by broker (broker)
ORDER_STATE_PLACED  accepted order
....


Plus the return value is long, how do I know which number refers to the return ORDER_STATE_STARTED for example, and what it means?

Where's the list which relates the description of the enumerator to its numerical value return? 


Grateful,
Daniel

Mladen Rakic
15550
Mladen Rakic 2016.10.25 16:41  
Daniel Andrejczuk:

Hello good afternoon!


There are several functions that return numeric enumerators, however the enumerator documentation there is a description of each enumerator and not the value, for example LONG OrderGetInteger(ENUM_ORDER_STATE) the list documentation:


ORDER_STATE_STARTED Order verified but not yet accepted by broker (broker)
ORDER_STATE_PLACED  accepted order
....


Plus the return value is long, how do I know which number refers to the return ORDER_STATE_STARTED for example, and what it means?

Where's the list which relates the description of the enumerator to its numerical value return? 


Grateful,
Daniel

Did you try comparing the return value with the identifier (something like OrderGetInteger(ENUM_ORDER_STATE)==ORDER_STATE_STARTED for example)?

You don't need to know the exact value of such enumerated constants, just use its "name"

To add comments, please log in or register