
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
thank you
onewithzachy
Thank you very much from the heart. I was facing that the sleep function did not work with your last function. Now it working on the backtest,
but inside it it takes a variable of the type of int only, and I want to be delayed in hours or seconds.
What is the solution in your opinion?
William Roeder #
thanks
This is not accurate when I put 3600, which means that he should not open more than four trades on the four-hour chart, but he opens more than one trade in an hour sometimes.
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 file.
How To Ask Questions The Smart Way. (2004)
Be precise and informative about your problem
We can't see your broken code.
William Roeder
William Roeder#
I made this code but it didn't work for delaying time between trades
uint now = GetTickCount();
long orderticktime ;
if (orderticktime <= now)
{
if(OrderSelect (0,1,OP_BUY)){
orderticktime = GetTickCount()+10000; // Ms + 10 Minuts
}
.
.
.
}
Please edit your post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum (2019)
Messages Editor