
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
What does this mean? How often will the code run?
depends on the second parameter of the mathmod function\ timecurrent returns the total number of seconds since 1970 , so by finding the reminder of the division of the current time by the number of seconds you want the code to be activated at , your problem will be solved , try it , the 17 means that the code will be executed every 17 seconds
OR
hope this is easier :)The idea should be to ignore the code in the start procedure if it just ran in the past n seconds. Does calling the sleep function prevent a subsequent tick move prevent the start procedure from executing?
you are right, i realized that after i had posted it. however tthe second solution is better . note that it skip ticks not seconds
Probably you're right. But why do you want to keep a script running forever? Doesn't EA do the job?