How to get datetime Value of OBJ_VLine?

 

I have an object OBJ_VLINE (vertical line) on chart with name "vline" with datetime 2021.06.08 00:00:00

I see I can not use ObjectGetTimebyValue as it does not support OBJ_VLINE

So how can i get datetime value of OBJ_VLINE?

 
Dark Ryd3r:

I have an object OBJ_VLINE (vertical line) on chart with name "vline" with datetime 2021.06.08 00:00:00

I see I can not use ObjectGetTimebyValue as it does not support OBJ_VLINE

So how can i get datetime value of OBJ_VLINE?

If its a Vertical line, then just read "ObjectGetInteger()" the time coordinate "OBJPROP_TIME" of its anchor point.
 
Fernando Carreiro:
If its a Vertical line, then just read "ObjectGetInteger()" the time coordinate "OBJPROP_TIME" of its anchor point.
worked perfectly. Thank you
 
Dark Ryd3r: worked perfectly. Thank you
You are welcome!
Reason: