How to get datetime Value of OBJ_VLine?

Dark Ryd3r
565
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?

Fernando Carreiro
6548
Fernando Carreiro  
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.
Dark Ryd3r
565
Dark Ryd3r  
Fernando Carreiro:
If its a Vertical line, then just read "ObjectGetInteger()" the time coordinate "OBJPROP_TIME" of its anchor point.
worked perfectly. Thank you
Fernando Carreiro
6548
Fernando Carreiro  
Dark Ryd3r: worked perfectly. Thank you
You are welcome!