Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1847
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.