Obj_Hline Price

 
Hi guys I have a code the create horizonal line on chart, my problem is how can I get the price of where my horizontal line is located and save it to a variable, if I drag the HLine up or down the variable where the price is saved will updated. thank you 
 
OnChartEvent()
 
Or, just read it when you need it; no variable update required.
 
mark692:

Do not double post!

You have the answer here already.

I have deleted your duplicated topic.