price value of horizontal line into a variable
-
Hello community,
does anybody know a way to get the price value of a horizontal line and to put it into a variable?
Thanks in forward and have a good week!Greetings
Tommi -
use the name - modify variables with line name using object on chart
-
Thank you for the fast answer @jstap ! I will try it.
-
@jstap said in price value of horizontal line into a variable:
use the name - modify variables with line name using object on chart
Unfortunately it doesnt work. I think the block settings are wrong.

-
It does I have done this many times for years, add a shared link to look at.
-
-
when you click on the object does it daw the line? Look in your object list, probably adding a number to the end, so object on chart won't fine it.
-
@jstap said in price value of horizontal line into a variable:
when you click on the object does it daw the line? Look in your object list, probably adding a number to the end, so object on chart won't fine it.
The object draws the line. This works. But I want to get the price value of the line as variable. This works not. And when I move the line the value stays the same.
-
so what's the name in the object list?