Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-14-2006, 02:06 PM
pete7's Avatar
Member
 
Join Date: Jan 2006
Posts: 92
pete7 is on a distinguished road
Some questions about Time (data & functions).

Hiho!
Some issues that give me a lot of concern. I would be very happy if some could answer them:

1. I want to create an EA that opens p. orders at specific day & hour (let's say Sunday opening). How it should look ? (DayOfWeek==0 && Hour()=00 doesnt work). Whatsmore I would like to open position only once so we should spot only the firs tick on Sunday (tried Seconds()==00 but what if the first tick arrives at 01 ?). Let's suppose that my broker's time is GMT.

2. Let's suppose that we have opened p. order as I want in the first point. Now I want to set its expiration date to Friday last tick (minute). I tried to set expiration date like this CurTime()+432000 (number of seconds in the week, but it didn't work).

3. Do you know any easier way to know what is your broker's time than checking its headquaters location and its time ?

4. Different brokers offer different times. How important is time in a strategy? Is it crucial ? I have noticed taht even in a simple MACD strategy on 1H TF results differs on from another. Maybe someone knows how big is this difference ?

Thanks in advance for your answers.
Best Regards
P7
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-14-2006, 09:35 PM
pete7's Avatar
Member
 
Join Date: Jan 2006
Posts: 92
pete7 is on a distinguished road
I need your help VERY, VERY badly...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-15-2006, 08:47 AM
Administrator
 
Join Date: Sep 2005
Posts: 15,986
Blog Entries: 70
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Quote:
Originally Posted by pete7
I need your help VERY, VERY badly...
Pete7,

But try to look at Igorad's EA: SimpleDailyRangeBreakExpert_v1.2.
This EA is having TimeZone (MetaTrader's broker time to open the orders) and days of the week coded. It works in forward testing.

And you may look at 2 EAs from Kimiv.
Attached Files
File Type: mq4 SimpleDailyRangeBreakExpert_v1.2.mq4 (10.5 KB, 43 views)
File Type: mq4 e-Friday_v1.mq4 (8.8 KB, 26 views)
File Type: mq4 e-Monday_LS.mq4 (6.0 KB, 28 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-15-2006, 09:14 AM
pete7's Avatar
Member
 
Join Date: Jan 2006
Posts: 92
pete7 is on a distinguished road
Thanks newdigital
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Back Test Old data but return time limit veematics Expert Advisors - Metatrader 4 1 05-30-2007 10:08 AM
Looping thru chart data, Questions ? icm63 Metatrader 4 0 01-26-2007 08:06 AM
Date/Time functions missing? charliev Metatrader 4 2 03-06-2006 11:03 AM


All times are GMT. The time now is 11:10 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.