Delete objects below when next object hit
-
Hi Guys, would really appreciate some help on this, its been breaking my brain. If a draw a series of parallel horizontal lines on a chart (lets call them 1, 2, 3 and 4), how do I tell the EA delete lines 1 and 2 when line 3 is hit. And then later on delete line 3 when line 4 is hit. The problem I have is that for the EA I have created lines 1,2,3 and 4 must be identical except for their price level (same name, description, color etc). The second problem I have been experiencing is that the EA is intended for market opens, so price may open beyond line 3 and since price is beyond the next line for lines 1 and 2 they must be deleted, but line 3 should not be deleted as line 4 has not yet been hit
-
What are you doing with these lines, some kind of virtual pending orders?
Otherwise you can try something like this:

I didn't tested it, but I feel that it will work. The idea is that you will delete any line that is lower than the current price with certain number of pips. -
Hello. I want the tip of a shadow to be drawn as a horizontal line and when the price reaches this line, the line will be deleted... please guide me
-
On which candle?