Pending Order and Delete Pending Orders
-
Hi guys , I am making an EA that after getting the range , I will have pending orders on Both Sides then after The pending order is taken , It will delete the other pending order on the opposite side.
Now , I tried to do it but I am getting errors that has no money and the tester is stopping and sometimes it deleting all of my orders

-
Can you please share the link to your project?
-
Probably OCO in pending block is enabled.
-
@l-andorrà somehow it works properly, my only issue is that it doesnt show my Object on live chart and is there a better way to do this kind of pending orders properly?
-
Well, do you really need the object? I don't see the bot is using the information provided by the object.
-
@l-andorrà I just like it to show where my range is
-
In that case you should skip the visual part. It is making the bot far less efficient.