Vos77:
Hi Forum,
I want to experiment delaying orders after receiving a trade signal. Would I use the sleep() function? and if so, where's the best place to insert it, above the lot calculation?
https://www.mql5.com/en/docs/common/sleep
Thanks for the help, much appreciated...
i cant see your EA above that point, but you would certainly want to calculate the lot-size after the sleep, if you have other EA's trading on the same account, as they may have made profit/loss that will affect your calculations.
![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
Hi Forum,
I want to experiment delaying orders after receiving a trade signal. Would I use the sleep() function? and if so, where's the best place to insert it, above the lot calculation?
https://www.mql5.com/en/docs/common/sleep
Thanks for the help, much appreciated...