How to get the date or shift coordinate of OBJ_VLINE

 
Hi guys, I have a VLINE (vertical line) that I want to obtain the date or shift value. I tried the following functions but to no avail. Please I need your support. Thanks
datetime VLineDate = ObjectGet("My VLine",OBJPROP_TIME1);
datetime VLineDate = ObjectGetTimeByValue(0,"My VLine",OBJPROP_TIME,0);

From the date coordinate I want to be able to get the shift (candle position) using the following:

int VLineShift = ObjectGetDouble(0,"My VLine",VLineDate,0);
 
  1. Perhaps you should read the manual. Where do you see VLINE in the allowable object types in ObjectGetTimeByValue
       How To Ask Questions The Smart Way. 2004
          How To Interpret Answers.
             RTFM and STFW: How To Tell You've Seriously Screwed Up.


  2. Perhaps you should read the manual. iBarShift
 
datetime y1=(datetime)ObjectGetInteger(0," Name vLine ",OBJPROP_TIME);