check distance between pending orders and market price
-
Hello
I want to write a program that will add a certain number of pending orders every time the current price moves by a certain amount (for example, 100 pips or by a certain range, for example, 90 to 110 pips), compared to the last and closest pending order. to do once in the condition).
And the bet is stopped until the last pending order takes the same distance from the current price.I used these blocks but failed to do it
Can you guide me in detail?(only check the condition once and again)

-
Bucket of pending orders will get the total combined value, use pink pips away, use oldest to newest or newest to oldest, depending on which value is relevant
-
I used the slide order block to move the pending orders relative to the current price, but when the current price reaches the pending order price, it is not converted into a position and disappears from the orders!
Please guide me if possiblehttps://fxdreema.com/shared/6pdSa0ezd

-
The only time I have seen a pending order delete instead of becoming a trade is if the lot size is too large. Check your journal tab and see if you have the reason
-
After the highlighted row, the sales order has been deleted
And I can't understand why

I tested this in the trail pending scenario and the same thing happened and instead of converting to a position, the order was deleted
-
Neither can I, I would expect you do have a order deleted line