Download MetaTrader 5
To add comments, please log in or register
Searching on MQL5.community is performed in all sections. Try it!
Attila.K
112
Attila.K 2016.03.31 20:00 
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
26171
Khurram Mustafa 2016.03.31 21:04  

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

and integer is whole 3

Alain Verleyen
Moderator
30297
Alain Verleyen 2016.03.31 21:07  
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 2016.03.31 22:00  
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?

Ovo Cz
3049
Ovo Cz 2016.04.01 06:56  
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
30297
Alain Verleyen 2016.04.01 10:14  
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