movable horizontal line

 

Hi,


I want to plot an horizontal line, and I want this line "movable", so that the user can place it wherever he wants, and i can use the level the user places it to do some calculation inside the code.

I've tried using the ObjectCreate function with OBJ_LINE, and it works, but now i wanna get the price at which the line is (if for example I plot the line at the daily low, and the user 

moves it to a new place, i want the new level inside a var

 

Can you help me with that?

Thanks 

 
Use ObjectGet.
 
Thank you man