Help me! Why doesn't ea stop?
Why doesn't ea stop?
start(){ open orders; sleep; return}
Each tick will open 2 more orders. Why do you expect anything else?
I expect the Ea will stop after it repeated 5 times but it didn't stop. I don't know why it didn't stop. Can you help me?
So you will get 5 orders per tick...
See a typical complete EA https://www.mql5.com/en/code/8714
as an example for controlling number of orders
-BB-
i hope you didnt run that on your trading account ...
Help me, pls!
You should cap it off with this
//----
return(0);
}
//+------------------------------------------------------------------+