I don't mean using variables instead of horisontal lines, but doing something that does not require so much values to be saved.
Anyway, if you draw any object with "Draw..." blocks, be careful with the first 2 parameters in each of these blocks. They control how many object can be created by the same block and their names also. Take a look at the names behind the objects on the chart - are they as you expect? If yes, then you can read those objects.
If you have names like red1, red2 and so on, and you want to read the latest object, this is the way: https://fxdreema.com/demo/mt4-object-in-loop
But note that objects are sorted by their name, not by date. And I know that the sorting can be wrong sometimes. It would be like this - red1, red10, red2, red3....
Once I was trying to fix this behaviour, but I think that I failed.