Eliminate (individual) negative orders
-
Hello friends, I need help fixing a rule that I call eliminate orders. (I did it as shown in the project but it is not working), it is eliminating all orders at once instead of eliminating one order at a time.
Here is the project: https://fxdreema.com/shared/dRSBN1Wbc
What I want to do is the following:
Track 1 order at a time, always checking (from the oldest order to the newest) and then check if the value (loss) of this order is less than the value I defined, which in this case in the EA is 100$ and if this happens, it deletes just that single order and checks the next one.In short:
Value Informed to be used $100Step 1, when there are more than 3 open orders.
Step 2, always check from oldest to newest order.
Step 3, individually check each order if the loss is less than the reported value of $100.
Step 4, if for example the oldest order the value is negative at -25$ it means that this value is less than 100$, then this order can be deleted.
Step 5, repeat the procedure again for the next orders and delete 1 order at a time whenever their negative value is lower than the value entered.