Hi,
Would like to ask, is there anyone encountered invalid lot number for OrderClose function() ?
I'm trying to play around with the EA, a very simple EA.
The lot I had initially is 0.1 when executing order send. Then when I tried to loop through all the order, all order lots is 0.
Here is my code:
It keeps on alert me the order lots is 0.
When I changed the lot number from 0.1 to 1, it able to alert me the correct number.
I was wondering what can actually cause this? I was testing on EUR-USD.
Hi,
Would like to ask, is there anyone encountered invalid lot number for OrderClose function() ?
I'm trying to play around with the EA, a very simple EA.
The lot I had initially is 0.1 when executing order send. Then when I tried to loop through all the order, all order lots is 0.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
Would like to ask, is there anyone encountered invalid lot number for OrderClose function() ?
I'm trying to play around with the EA, a very simple EA.
The lot I had initially is 0.1 when executing order send. Then when I tried to loop through all the order, all order lots is 0.
Here is my code:
It keeps on alert me the order lots is 0.
When I changed the lot number from 0.1 to 1, it able to alert me the correct number.
I was wondering what can actually cause this? I was testing on EUR-USD.