Help me, pls!
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?
HuyTitan:
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?
The start() function is called on each incoming tick. See here -> https://docs.mql4.com/runtime/start.
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-
Tks! Everyone
i hope you didnt run that on your trading account ...
HuyTitan:
Help me, pls!
Help me, pls!
You should cap it off with this
//----
return(0);
}
//+------------------------------------------------------------------+

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