How to set type of variable for OBJ_PERIOD

 

example; Color getcol = White;

???? getPeriod = OBJ_PERIOD_M5;


Thank you

 

I mean type of variables.

 
sorasit46:

example; Color getcol = White;

???? getPeriod = OBJ_PERIOD_M5;


Thank you

   ENUM_TIMEFRAMES OBJPROP_TIMEFRAMES getPeriod = OBJ_PERIOD_M5;
 
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

 
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.
 
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 ?

 

ObjectSet("Name",OBJPROP_TIMEFRAMES, OBJ_PERIOD_H4);

What number equal OBJ_PERIOD_H4 ?

 
sorasit46:

What number equal OBJ_PERIOD_H4 ?


32
 
qjol:


32

Thank you. It's right.

How to find another OBJ_PERIOD?

 
sorasit46:

Thank you. It's right.

How to find another OBJ_PERIOD?



Why ? It's better to use the named constants.
Reason: