Download MetaTrader 5

How to set type of variable for OBJ_PERIOD

To add comments, please log in or register
sorasit
359
sorasit  

example; Color getcol = White;

???? getPeriod = OBJ_PERIOD_M5;


Thank you

qjol
3243
qjol  
sorasit
359
sorasit  

I mean type of variables.

Alain Verleyen
Moderator
32827
Alain Verleyen  
sorasit46:

example; Color getcol = White;

???? getPeriod = OBJ_PERIOD_M5;


Thank you

   ENUM_TIMEFRAMES OBJPROP_TIMEFRAMES getPeriod = OBJ_PERIOD_M5;
Mladen Rakic
60836
Mladen Rakic  
angevoyageur:


ENUM_TIMEFRAMES and OBJPROP_TIMEFRAMES are completely different set of values

Just an example : OBJ_PERIOD_M5 is equal to 2 while PERIOD_M5 is equal to 5

Alain Verleyen
Moderator
32827
Alain Verleyen  
mladen:

ENUM_TIMEFRAMES and OBJPROP_TIMEFRAMES are completely different set of values

Just an example : OBJ_PERIOD_M5 is equal to 2 while PERIOD_M5 is equal to 5

You are right. I edited my post above.
sorasit
359
sorasit  
mladen:

ENUM_TIMEFRAMES and OBJPROP_TIMEFRAMES are completely different set of values

Just an example : OBJ_PERIOD_M5 is equal to 2 while PERIOD_M5 is equal to 5


If OBJ_PERIOD_M5 is equal to 2.

what is another OBJ_PERIOD ?

sorasit
359
sorasit  

ObjectSet("Name",OBJPROP_TIMEFRAMES, OBJ_PERIOD_H4);

What number equal OBJ_PERIOD_H4 ?

qjol
3243
qjol  
sorasit46:

What number equal OBJ_PERIOD_H4 ?


32
sorasit
359
sorasit  
qjol:


32

Thank you. It's right.

How to find another OBJ_PERIOD?

Alain Verleyen
Moderator
32827
Alain Verleyen  
sorasit46:

Thank you. It's right.

How to find another OBJ_PERIOD?



Why ? It's better to use the named constants.
12
To add comments, please log in or register