Hello Programmers.
How can i make my EA running after each xx Second's
Kindly Give me Ideas to do that in proper way.
Now a day's in all my post I'm getting just simple reply from Moderator(RaptorUK). Is here no MT4 Programmers?.
Or all had turned as billionaire :P
With Regards
Saravana
Now a day's in all my post I'm getting just simple reply from Moderator(RaptorUK). Is here no MT4 Programmers?.
Or all had turned as billionaire :P
As I already said . . . there is no proper way, there is in MT5 there is an OnTimer event, but in MT4 EAs are tick driven . . . a new tick causes start() to be called.
Now a day's in all my post I'm getting just simple reply from Moderator(RaptorUK). Is here no MT4 Programmers?.
Or all had turned as billionaire :P
With Regards
Saravana
You had a simple, but relevant reply from raptorUK.
You could assign the value of TimeCurrent() to a static or Global scope variable and then check that at least xx seconds has passed and if it hasn't then return(). Of course, this will not be exact, so you cannot guarantee that the EA will calculate exactly every xx seconds.
d.saravana21:
How can i make my EA running after each xx Second's
Kindly Give me Ideas to do that in proper way.
GumRai:
You could assign the value of TimeCurrent() to a static or Global scope variable and then check that at least xx seconds has passed and if it hasn't then return(). Of course, this will not be exact, so you cannot guarantee that the EA will calculate exactly every xx seconds.
Ok kindly some one give me an example. write this code into work every 30 sec (what ever it working after 30 sec or more sec from that)
int start() { Alert("hello"); }
Ok kindly some one give me an example. write this code into work every 30 sec (what ever it working after 30 sec or more sec from that)
int start() { Alert("hello"); }
"hello"
Have you test it ??
how is it avoiding running every tick ...
Ok kindly some one give me an example. write this code into work every 30 sec (what ever it working after 30 sec or more sec from that)
Ok kindly some one give me an example. write this code into work every 30 sec (what ever it working after 30 sec or more sec from that)
how about this :-
int start() { Alert("hello");
sleep(30000); }
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello Programmers.
How can i make my EA running after each xx Second's
Kindly Give me Ideas to do that in proper way.
With Regards
Saravana