Home
Search Forums
Keywords:
Search Titles Only
User Name:
Exact Match
Show Results As:
Advanced Options
Reply
 
Thread Tools Search this Thread
  #721  
Old Nov 7, 2009 5:48am
scooby-doo's Avatar
Member
 
Member Since Jul 2009
7 Vouchers  668 Posts
Default

Quote:
Originally Posted by SteveHopwood View Post
Sounds like a plan to me.

I did use to be a cobol programmer many many many years ago.
Reply With Quote
  #722  
Old Nov 7, 2009 5:54am
Member
 
Member Since Apr 2007
Default

One for the coders here.

MinsUntilNews = 90
MinsAfterNews = 60

The code to calculate the robot's sleep time for 150 minutes is:
int SleepTime = ((MinsUntilNews + MinsAfterNews) * 60) * 1000;

Looks ok?

__________________
Multi-purpose management EA http://www.forexfactory.com/showpost...99&postcount=1 More importantly, visit http://www.forexfactory.com/showthread.php?t=152341
Reply With Quote
  #723  
Old Nov 7, 2009 5:54am
scooby-doo's Avatar
Member
 
Member Since Jul 2009
7 Vouchers  668 Posts
Default

Steve,

Have you seen this: http://www.eainstall.com/ ?
Reply With Quote
  #724  
Old Nov 7, 2009 5:56am
scooby-doo's Avatar
Member
 
Member Since Jul 2009
7 Vouchers  668 Posts
Default

Quote:
Originally Posted by SteveHopwood View Post
One for the coders here.

MinsUntilNews = 90
MinsAfterNews = 60

The code to calculate the robot's sleep time for 150 minutes is:
int SleepTime = ((MinsUntilNews + MinsAfterNews) * 60) * 1000;

Looks ok?

Dont you just do this ?

int Mins.Before.News = 90;
int Mins.After.News = 60;

//+------------------------------------------------------------------+
//| expert NewsHandling function |
//+------------------------------------------------------------------+
bool NewsHandling()
{

bool NewsTime = false;
int minutesSincePrevEvent =
iCustom(NULL, 0, "FFCal", true, true, false, true, true, 1, 0);
int minutesUntilNextEvent =
iCustom(NULL, 0, "FFCal", true, true, false, true, true, 1, 1);
if((minutesUntilNextEvent <= Mins.Before.News) ||
(minutesSincePrevEvent <= Mins.After.News))
{
NewsTime = true;
}
return(NewsTime);
}
Reply With Quote
  #725  
Old Nov 7, 2009 5:56am
Member
 
Member Since Apr 2007
Default

Quote:
Originally Posted by scooby-doo View Post
I did use to be a cobol programmer many many many years ago.
Hehe. Me too - it was the first language I learned that compiled into machine code. At the time, compared with the BBC Basic I had been using the speed of execution was breathtaking.

__________________
Multi-purpose management EA http://www.forexfactory.com/showpost...99&postcount=1 More importantly, visit http://www.forexfactory.com/showthread.php?t=152341
Reply With Quote
  #726  
Old Nov 7, 2009 6:02am
Member
 
Member Since Apr 2007
Default

Quote:
Originally Posted by scooby-doo View Post
Steve,

Have you seen this: http://www.eainstall.com/ ?
No, I hadn't. Thanks.

__________________
Multi-purpose management EA http://www.forexfactory.com/showpost...99&postcount=1 More importantly, visit http://www.forexfactory.com/showthread.php?t=152341
Reply With Quote
  #727  
Old Nov 7, 2009 6:04am
Member
 
Member Since Apr 2007
Default

Quote:
Originally Posted by scooby-doo View Post
Dont you just do this ?

int...
<Huffy sniff> Mine would work too.

This is better though; consider it adopted.

__________________
Multi-purpose management EA http://www.forexfactory.com/showpost...99&postcount=1 More importantly, visit http://www.forexfactory.com/showthread.php?t=152341
Reply With Quote
  #728  
Old Nov 7, 2009 6:12am
scooby-doo's Avatar
Member
 
Member Since Jul 2009
7 Vouchers  668 Posts
Default

Quote:
Originally Posted by SteveHopwood View Post
<Huffy sniff> Mine would work too.

This is better though; consider it adopted.

Reply With Quote
  #729  
Old Nov 7, 2009 6:50am
smjones's Avatar
THANK YOU MERLIN,TWEE and FF Team
 
Member Since Mar 2006
Default Can't Sleep

As a help, (I hope) I modified an old SCRIPT ( again, THIS IS A SCRIPT) to look at your system time and then tell you what your GMT SHIFT is.

Steve, I think this would answer your question better than the file you sent me to make into a function. In the mean time anyone can just put this script on their chart and get an instant answer about the shift hours.
Attached Thumbnails
Click image for larger version

Name:	gmt shift.gif
Views:	76
Size:	12.8 KB
ID:	355932    
Attached Files
File Type: mq4 LocalTimeAND_GMT_Shift.mq4 (4.2 KB, 96 views)
__________________
There are no Gurus, only dead Buddhas; "If you meet the Buddha on the Road, Kill Him"
Reply With Quote
  #730  
Old Nov 7, 2009 6:55am
Member
 
Member Since Apr 2007
Default

Cheers Scott. I have put a link to your post in post 1, so it will not get lost.

__________________
Multi-purpose management EA http://www.forexfactory.com/showpost...99&postcount=1 More importantly, visit http://www.forexfactory.com/showthread.php?t=152341
Reply With Quote
  #731  
Old Nov 7, 2009 7:01am
scooby-doo's Avatar
Member
 
Member Since Jul 2009
7 Vouchers  668 Posts
Default

Blimey 25,000 views, I hope Warren Buffet is not one of them, he probably does have the equity to take on the BOJ.
Reply With Quote
  #732  
Old Nov 7, 2009 7:01am
smjones's Avatar
THANK YOU MERLIN,TWEE and FF Team
 
Member Since Mar 2006
Default

Quote:
Originally Posted by SteveHopwood View Post
Cheers Scott. I have put a link to your post in post 1, so it will not get lost.

If you want to incorporate it as a function, just put the import info at the top of the script above your #property...
and then you could just change the start () into a void LocalGMT() function and declare a couple of variables to hold what is the the string variable com.

However, I personally feel, if a person cannot figure out what their shift is with this bit of help, they should not use this EA, and maybe need to seriously reconsider their trading level and education. I mean this is not Rocket Science.

I don't mean to offend, just pointing out the obvious.
__________________
There are no Gurus, only dead Buddhas; "If you meet the Buddha on the Road, Kill Him"
Reply With Quote
  #733  
Old Nov 7, 2009 7:38am
scooby-doo's Avatar
Member
 
Member Since Jul 2009
7 Vouchers  668 Posts
Default

Quote:
Originally Posted by SteveHopwood View Post
Anybody know where we download the latest version of FFCal? We all have a version, I am sure, but don't know whether it is the latest.

Added the news and public hols filter - haven't posted it in post 1 yet, but here it is if people want to play with the settings to test them out.

Don't use this version of the robot on a trading account; it has a call to start() to force it to display information that might have unpredictable effects.

I understand that this is the latest one.
Attached Files
File Type: mq4 FFCal.mq4 (47.0 KB, 36 views)
Reply With Quote
  #734  
Old Nov 7, 2009 8:22am
dryclean's Avatar
Member
 
Member Since Oct 2008
Default Single Pair

I take it the single pair robot has been shelved (for obvious reasons)

All sould re-read post 1.
__________________
you think FOREX is hard try drycleaning
Reply With Quote
  #735  
Old Nov 7, 2009 8:26am
Member
 
Member Since Apr 2007
Default

Quote:
Originally Posted by dryclean View Post
I take it the single pair robot has been shelved (for obvious reasons)

All sould re-read post 1.
Yes, it has.

__________________
Multi-purpose management EA http://www.forexfactory.com/showpost...99&postcount=1 More importantly, visit http://www.forexfactory.com/showthread.php?t=152341
Reply With Quote
Reply

11 Traders Viewing This Thread (5 are members)
ilzalama, npmjh, searcher985, pipstalker, Abundance
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
AshFX V2. SteveHopwood's latest trading robot - it works this time SteveHopwood Trading Systems 159 Nov 20, 2009 7:51pm (3 hr ago)
AshFX system, V2: Steve Hopwood's trading robot SteveHopwood Programming Discussion 228 Oct 17, 2009 12:28pm
Robot trading Paulus Trading Journals 120 Oct 22, 2008 12:16pm
What’s Differences Between Robot and Manual Trading Money Management Systems Kiwi06 Trading Discussion 0 Feb 11, 2008 5:08pm
Trading JPY pairs smjones Trading Discussion 26 Oct 9, 2007 2:00am