Download MetaTrader 5

The integer numbers of the members in enumerations

To add comments, please log in or register
Attila.K
112
Attila.K  
Why are some enumerations not starting from 1? For example ... ENUM_POSITION_PROPERTY_INTEGER is starting from 1, but ENUM_POSITION_PROPERTY_DOUBLE is not.
Khurram Mustafa
41087
Khurram Mustafa  

Because double is floating number like 0.10 , 0.2 , 0.033 , 0.89

and integer is whole 3

Alain Verleyen
Moderator
33615
Alain Verleyen  
Attila.K:
Why are some enumerations not starting from 1? For example ... ENUM_POSITION_PROPERTY_INTEGER is starting from 1, but ENUM_POSITION_PROPERTY_DOUBLE is not.
That absolutely doesn't matter.
Attila.K
112
Attila.K  
Alain Verleyen:
That absolutely doesn't matter.

I was trying to iterate over ENUM_POSITION_PROPERTY_DOUBLE with PositionGetDouble() ... but I could not do.

How can I iterate over an enum ... is it possible?

Ex Ovo Omnia
3380
Ex Ovo Omnia  
Attila.K:

I was trying to iterate over ENUM_POSITION_PROPERTY_DOUBLE with PositionGetDouble() ... but I could not do.

How can I iterate over an enum ... is it possible?

No, as far as I know.
Alain Verleyen
Moderator
33615
Alain Verleyen  
Attila.K:

I was trying to iterate over ENUM_POSITION_PROPERTY_DOUBLE with PositionGetDouble() ... but I could not do.

How can I iterate over an enum ... is it possible?

You can't and anyway that's not a good idea.

What are you trying to achieve ?

To add comments, please log in or register