If (count>=0) {
What is the starting value of count? If count is set to 0 then the above condition is always true.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
This code checking if there is the order I'm asking about, if it is than some variable change, and if there is not any orders than it should send the order.
The problem is that if program checks that first order exists than it change variable count>0. So the next order couldn't be checked.
So I'm thinking about:
If (count>=0) {
Should be it correct?