Start running EA at set times
  #1 (permalink)  
Old 05-29-2007, 03:31 PM
Freshman
 
Join Date: May 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
andrewdotcomau is on a distinguished road
Default Start running EA at set times

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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Have indicator running, need EA help Bill R System Coding 3 10-08-2007 05:36 PM
How to start in forex monann Forex Beginners 8 08-14-2007 11:25 PM
many pltaforms running in the same time marcelo0 MetaTrader and ZeroCode 1 11-25-2006 08:17 PM
MT4 int start() loop varable import possible? lowphat MetaTrader and ZeroCode 0 09-10-2006 11:31 PM
Facility to trade at different times for multiples Rastarr MetaTrader and ZeroCode 5 06-15-2005 07:15 AM


All times are GMT. The time now is 07:18 AM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast