Lost thread
-
The hacking affected old threads too, sadly. I can't find one in which jstap or roar (I don't remember) explained how a bot can identify which specific horizontal line has been crossed right now from any other present on the chart. Then that specific line will be deleted. I can't see the way to identify that line from the whole list of line objects. Could you please reupload the info?
-
@l-andorrà I think this was @roar, if not I will try and help you, I would number each line so I could delete by number...probably a better way though.
-
@l-andorrà I dont recall this, but I would take the high and low of current candle, then compare those values to every object in a loop
-
@jstap I thought that, but I can't fins a way to 'search' the specific number. The crossed line maybe was plotted 20 candles ago or just 3 candles ago. Both will have different numers for sure, but how can I find the exact one that was crossed tight now?
-
@roar Interesting idea. However, finding a coincidential price level cannot be necessarily happening. Ask price can cross the line by one or more points beyond it due to a microgap and then no coincidence would be found.
-
@l-andorrà When the line is crossed, do something with the line, to me it wouldn't be check what has happened, it would be do something when it happens.
-
@jstap Ok, but againn, how can identify what line was crossed? There will be many.
-
@l-andorrà I would do something like this: https://fxdreema.com/shared/lw4ArngZc
-
@jstap The problem is that I would need as many variables as lines and I don't know how many lines will be visible on the chart. There can be 10 sometimes, 20 other times or 100.
-
@l-andorrà I think the best thing to do with tis then would be to add the value to an array, every time a line is drawn the value is added to an array, unfortunately though I am not vary adapt with arrays, I am not sure if array fill need the number or elements increased when adding, also can get the array number but not sure how to get the value. Maybe @roar could help.