- How to keep consistency of trade functions
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
- How to code?
while(true) { //Do something if(everything completed and want to leave loop) break; }You have to have a break to exit the loop as while(true) will always be true.
You have to have a break to exit the loop as while(true) will always be true.
Commonly Your answer is ok but It isn't that I want to know....
I just want to know that the problem occurs instantaneously as above.
and solution.
Another example
for (int pos = 0; pos < OrdersTotal(); ++pos)
{
if (OrderSelect(pos, SELECT_BY_POS) == false)
{
// EA process this line, if instantaneously order count is changed.
}
}
As you have not described what problems you are having and your examples don't make any sense, it is not possible to give you any advice.
As your first example was an endless loop, I gave the only answer that was possible.
As you have not described what problems you are having and your examples don't make any sense, it is not possible to give you any advice.
As your first example was an endless loop, I gave the only answer that was possible.
Sorry, I changed example of problem.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use