Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Expert Advisors - 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
  #11 (permalink)  
Old 06-22-2007, 02:42 PM
Senior Member
 
Join Date: May 2007
Posts: 127
Minnelli is on a distinguished road
Thanks MrPip, I will look at this in the afternoon. I tried to use some of the SkyDart code but it just got all messy on me. I'm not a seasoned coder like you, but I will pat myself on the back for creating my midnight variable so if the time passes midnight it adjusts properly

I like your the idea of going down to the minute because after a closer look this morning, my old code put me in a trade during the 800 hour when I wanted it to stop by 800. My code had a stop hour = 8, which means it can take orders up to 59. Your code would have been better and more detailed if the stop hour =0800.

Thanks again, plus this should help out Ruf.

Minnelli
Forex Signal Providers - Journal

Last edited by Minnelli; 06-22-2007 at 03:32 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 06-22-2007, 02:53 PM
Ruf Ruf is offline
Junior Member
 
Join Date: Jun 2006
Location: Canada
Posts: 8
Ruf is on a distinguished road
Thanks guys. Ill try it out!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 06-22-2007, 07:44 PM
whitesand's Avatar
Member
 
Join Date: Dec 2005
Posts: 56
whitesand is on a distinguished road
What about an EA to put two trades like a buy/stop and sell/stop at certain time like 00:00 gmt hours base on the open price + 50? Like if the open price is 1.9900 then make a buy/stop at 1.9950 and a sell/stop at 1.9850 with a stop loss of 30 or so. Be nice if one of the coders would do that for me. I don't think it's a hard EA at all for some of the veteran coders.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 06-22-2007, 08:26 PM
Senior Member
 
Join Date: Mar 2006
Location: La Verne,CA
Posts: 552
MrPip is on a distinguished road
Stop Hour

Quote:
Originally Posted by Minnelli View Post
Thanks MrPip, I will look at this in the afternoon. I tried to use some of the SkyDart code but it just got all messy on me. I'm not a seasoned coder like you, but I will pat myself on the back for creating my midnight variable so if the time passes midnight it adjusts properly

I like your the idea of going down to the minute because after a closer look this morning, my old code put me in a trade during the 800 hour when I wanted it to stop by 800. My code had a stop hour = 8, which means it can take orders up to 59. Your code would have been better and more detailed if the stop hour =0800.

Thanks again, plus this should help out Ruf.

Minnelli
Forex Signal Providers - Journal
I have not looked at your code but you would need to use Hour() < stophour for the filter. That way when Hour() = stophour you would not place a trade.

That is how my function works.

Robert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 06-22-2007, 08:29 PM
Senior Member
 
Join Date: Mar 2006
Location: La Verne,CA
Posts: 552
MrPip is on a distinguished road
Already done

Quote:
Originally Posted by whitesand View Post
What about an EA to put two trades like a buy/stop and sell/stop at certain time like 00:00 gmt hours base on the open price + 50? Like if the open price is 1.9900 then make a buy/stop at 1.9950 and a sell/stop at 1.9850 with a stop loss of 30 or so. Be nice if one of the coders would do that for me. I don't think it's a hard EA at all for some of the veteran coders.

This has been done in Hans123 and variations.

You would need more rules than just place buy stop or sell stop. What happens when one is hit? Do you delete the other? What happens at end of day if neither is hit? Or if one is hit but not yet closed?

There are other issues that would need to be decided as well.

Robert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 06-22-2007, 09:35 PM
whitesand's Avatar
Member
 
Join Date: Dec 2005
Posts: 56
whitesand is on a distinguished road
MrPip,

Yeah I seen hans123 but that I believe was base on certain range which I don't remember. I just want one that I can input certain pips from the open price at that hour. Also yeah like you said that one needs to cancel after the other is trigger and just closed the trade at the end of the day.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 06-23-2007, 05:57 PM
Senior Member
 
Join Date: May 2007
Posts: 127
Minnelli is on a distinguished road
Started new thread over here. Big thanks to MrPip for providing the initial code!!!
http://www.forex-tsd.com/expert-advi...tml#post125934
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 01-18-2008, 11:13 AM
Member
 
Join Date: Jul 2006
Posts: 32
agarwalsharma is on a distinguished road
Ea

Hello All

Does anyone have an EA that do not allow the trades in certain time. For example if you attach it to GBP/JPY it will not allow other EA to put a pending or market price orders for this pair in certain time like

Do not open trade between 4:30 to 5:30

and between

8:30 to 9:00


and between 10:30 to 11:00

The EA will not allow just one EA to put the orders and it will define it by its magic number.

Your help is appreciated
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 01-18-2008, 12:27 PM
Administrator
 
Join Date: Sep 2005
Posts: 16,324
Blog Entries: 108
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
Moved your post to this thread where you can find some codes and discussion about similar idea.
The other usefull thread related to this subject is here Trading Times Enhancement
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 02-17-2008, 06:59 AM
Julia's Avatar
Junior Member
 
Join Date: Aug 2007
Posts: 17
Julia is on a distinguished road
Question?

I have an indicator.
I need to refresh it every bar.
How do I do it so that the EA refreshes it somehow every tick?

Also, what is the code to turn off EA or turn on EA? Is that possible?
Also, how do I do it so that before the EA turns off, it remembers something when it starts up again?

Thanks,
Julia.
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 Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trade only certain times of day? pipsweak Expert Advisors - Metatrader 4 1 04-01-2007 05:20 PM
Changing Times Pervaz General Discussion 3 08-29-2006 10:03 PM
Metatrader times guybraun Metatrader 4 2 02-15-2006 01:53 PM
Trading Times dennisros General Discussion 3 02-13-2006 11:42 AM
Trade Times caldolegare General Discussion 7 11-15-2005 01:07 PM


All times are GMT. The time now is 01:10 AM.



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