What do you think, if I add the condition of profit calculation > 0 to the function of all orders closing, will it change?
I have this condition in my command to close orders
Judging by your question#18460, orders are not closed by the broker. If you send a request to the server to close an order (OrderClose) and it is not closed as a result of this request, you cannot change anything here using the code.
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.
What do you think, if I add the condition of profit calculation > 0 to the function of all orders closing, will it change?
I have this condition in the command to close orders
What do you think, if I add the condition of profit calculation > 0 to the function of all orders closing, will it change?
I have this condition in my command to close orders
Judging by your question#18460, orders are not closed by the broker. If you send a request to the server to close an order (OrderClose) and it is not closed as a result of this request, you cannot change anything here using the code.
What do you think, if I add the condition of profit calculation > 0 to the function of all orders closing, will it change?
I have this condition in the command to close orders
Add the flag to close until it closes and any broker will work.
Now we are having a constructive conversation.
Rostislav, if you can elaborate on the flag.
Or not so for dumb people, spell it out.
Now we are having a constructive conversation.
Rostislav, if you can elaborate on the flag.
Or not so spell it out for the dumb ones.
Would you post the code OnTick() ...
Not the entire code, just those parts where CountTrade() is checked
Post the OnTick() code ...
Not all of it, just the parts where CountTrade() is checked.
Inbox
In private
In private
Check
Honestly, it's not clear
What can this expression change
if(flag_close==1)ClosseAll();
If you can explain
Personal correspondence is recommended in private messages.