Object over and under price
-
My idea is to draw two lines , one above price with x pips and one below price with x pips , and if price goes above the upper line it buys and when it goes below the lower it sells.
I made it so far .But when for example the buy trade is triggered i want it to delete the upper line and make a new one yet again x pips above price .
But is there a way to check if the object isnt there and then make a new one , have it to once per bar but its now what i wanted

-
maybe this can help you, it is not exactly your situation but is there object existention checking

https://fxdreema.com/forum/topic/4292/horizontal-line-for-buy-and-sell/2 -
Thank you ! Thanks for beeing there with answers !
