asasusa: Can you tell me why this script does not delete all orders, there are 3 pending orders in total in the terminal, but the script deletes only 2
sovetnikmaker: What's wrong with this condition, can you tell us more about it?
Look at the description of the for statement and try to answer two questions:
1) how often is the condition I specified checked in the loop;
2) what values is returned by the function OrdersTotal() at each check of the condition "i < OrdersTotal()" (taking into account that the body of for statement itself contains code for deleting an order).
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Can you tell me why this script does not delete all orders, there are 3 pending orders in total in the terminal, but the script only deletes 2.
i < OrdersTotal();You have Alerts there - see what it shows.Because of the condition You have Alert there - see what it shows.
Look at the description of the for statement and try to answer two questions:
1) how often is the condition I specified checked in the loop;
2) what values is returned by the function OrdersTotal() at each check of the condition "i < OrdersTotal()" (taking into account that the body of for statement itself contains code for deleting an order).
Who can I contact about converting MT4 indicator for MT5?
There's a link at the top to the "Jobs" service - that's where you go.