how can i now an object is visible or not visible?

 

how can i now an object is visible or not visible?  (1)

is this code is true?

ObjectGetInteger(0,"NAME",OBJPROP_TIMEFRAMES,OBJ_PERIOD_H1);

how can i now an object is visible or not visible?
how can i now an object is visible or not visible?
  • 2020.12.06
  • www.mql5.com
how can i now an object is visible or not visible...
 
Ebrahim Noroozi Sani Yadaki:

how can i now an object is visible or not visible?  (1)

is this code is true?

ObjectGetInteger(0,"NAME",OBJPROP_TIMEFRAMES,OBJ_PERIOD_H1);

I this case

ObjectGetInteger(0,"NAME",OBJPROP_TIMEFRAMES,OBJ_PERIOD_H1);

Your object will be visible only on H1 TimeFrame. If you will set  OBJ_NO_PERIODS instead of OBJ_PERIOD_H1 your object won't appear on any TimeFrame

https://docs.mql4.com/constants/objectconstants/visible

Visibility of Objects - Objects Constants - Constants, Enumerations and Structures - MQL4 Reference
Visibility of Objects - Objects Constants - Constants, Enumerations and Structures - MQL4 Reference
  • docs.mql4.com
Visibility flags can be combined using the symbol "|", for example, the combination of flags OBJ_PERIOD_M15|OBJ_PERIOD_H1 means that the object will be visible on the 15-minute and hourly timeframes.
 

mr-roma:

I this case

Your object will be visible only on H1 TimeFrame. If you will set  OBJ_NO_PERIODS instead of OBJ_PERIOD_H1 your object won't appear on any TimeFrame

https://docs.mql4.com/constants/objectconstants/visible

thanks 

but

i have any object in chart.

i want to now is an object is visible or unvisible

id do'nt want to set visiblty of it!
 
You mean visible on Objects List
 
mr-roma:
You mean visible on Objects List

i mean visible in timeframe

 
mr-roma:
Can you post you code?

i have an indicator that it disable som of objects in H1 timeframe, i want to now is for example "ObjectName" Object is Visible in H1 Or is unvisible in H1.

 
Can you post full code?
 
mr-roma:
Can you post full code?

there isent any code

 
You said you have an indicator ...
 
mr-roma:
You said you have an indicator ...

it is ex4

Reason: