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 I was wondering if anyone knows how to/ or where to find code that only starts running at certain times of the day. I'm trying to code it to start at 2am EST then stop at 2pm EST. I would be very grateful if anyone can help or point me to the right direction.
Here's the algorithm I came up with
while (current time is 2am && current time is not 2pm)
{
do stuff...
}
I'm not sure how the while loop reference to the sever time as time would have to be perfect communication between client and server. (i think) a gitch could create a while(1) loop.
Does anyone have a soln to this or an easier way to do it?
Kind Regards
Andrew