@l-andorrΓ
Thank you for the heads up. It sure is appreciated.
I saw that thread before.
Since the indicator plots like 100 of such lines (over a very big price range), it seems it will be a crazy huge task to fetch all lines. However, now thinking of it, I might be able to let the indicator plot only lines in a narrow price range, and hence require less lines to be 'fetched'.
But here's where I am expecting problems:
The indicator that draws the lines draws, let's say 5 specific lines in the nearest 400 pip range, with each line its own name, BUT the indicator does the exact same thing for the next upper and lower 400 pip price ranges, so they end up having the same names for the lines. Than how does FXdreema know how to fetch the correct (nearest) line?
This is why my question was specifically on finding the NEAREST lines (from the indicator) above and below current price.
Another, not so ideal solution could be to use parts of the indicator code to store values into the EA for the nearest X number of lines, and use those. Still, I believe there should be a way to find the nearest line above (and below) current price.
Another option is:
I am missing the point of the thread you suggested 