Trick to get horizontal Line's parameters on variable
-
Hi
Is there anyway, we can get horizontal line's parameters on variable?
E.g.
EA has drawn Horizontal line on x price, now it's parameters will be the x price. can we get this price on variable ?
Thanks
-
@baxpar modify variable, object on chart with name you called line.
-
-
@baxpar You need this block instead of that 'pass' block:

-
if we replace "Pass" block by "Select Object by Name" block. it does not draw line in first place, because it can't find that object, hence does not continue towards Draw Line block. (with or without entering object name)
and if we load the EA on live chart and place an horizontal line manually, still it doesn't recognise that object.
Pass block here is a example thing, will be later replaced by some conditions when function is found.
-
@baxpar try this way

-
Thanks it's working now, candle ID 1 has fixed the issue. earlier I left it to 0.
Thanks @jstap
Thanks @l-andorrà
-
@baxpar you're welcome
