![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
for(int i=0;i<OrdersTotal();i++)
Error: "i".
What is the error ?
What do you mean, only with own orders....
What do you mean, only with own orders....
If you have several copies of the EA in one account, it does not confuse which EA opened the order and uses a unique identification number.
What is the mistake ?
The error here is that the variable i is initialized twice in the first for loop and in the second for loop, either the second initialization should be removed, or the variable name should be changed.
That's right, I thought his compiler was fighting.
and no, if you take it out.
it says it's an error.