Trade function opening multiple trades instead of one
- Bot opening multiple trades when IF function included
- trade at time
- How to place (and close correctly) multiple orders on one EA
Hi guys, I have created a function for opening buy/ sell trades, but the EA opens more than 1 trades when I set the trade number 0 someone kindly help, I have tried adding magic number but still same result. Thanks in advance
Use POSITION_SYMBOL and POSITION_TYPE to check the orders
Thanks let me try that
Hi guys, I have created a function for opening buy/ sell trades, but the EA opens more than 1 trades when I set the trade number 0 someone kindly help, I have tried adding magic number but still same result. Thanks in advance
It depends on what you have in your events handling function which is not indicated here:
void OnTick() { // ... }
Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. Always post all relevant code (using Code button) or attach the source file.
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problem
We can't see your broken code.