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 04-10-2007, 10:03 AM
jorgeng's Avatar
Member
 
Join Date: Nov 2005
Posts: 64
jorgeng is on a distinguished road
Closing positions before new day

Hi there.

Hopes some good metatrader4 programmer can help me with this ea. I'm trading eurusd on daily timeframe. The rollover cost is high for me when eurusd not is trending meaning staying at the same price for a while.

My idea is to have an ea closing the positions i have for 1 to 10 minutes before new day and when that is done open position some minutes after midnight and aiming to come in at same price i sold at including spread like
a grid system. The purpose is to don't loose any money and not needing to
pay rollover cost.

I know this can be done. The ea would have to calculate the price it sold at,
take care of spread and then putting in the new order at same lots i had before midnight. Nothing complicated, but that's the idea.

If the ea had putted in the new order and there is no trade done, meaning the conditions weren't met that's my decisions and i have to go in the market myself in the morning, but often the price will come back where it were som minutes before midnight.

Anyone could coding this simple and including the code here, please?

Thanks

jorgeng
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2007, 11:08 AM
Administrator
 
Join Date: Sep 2005
Posts: 15,954
Blog Entries: 65
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
Try to look at SBS EA and at Trade on Friday-Monday EAs as an example.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2007, 11:52 AM
jorgeng's Avatar
Member
 
Join Date: Nov 2005
Posts: 64
jorgeng is on a distinguished road
Ok, i look at sbs ea and come back later.

Do you think it is easy to code?



Quote:
Originally Posted by newdigital
Try to look at SBS EA and at Trade on Friday-Monday EAs as an example.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2007, 02:06 PM
Administrator
 
Join Date: Sep 2005
Posts: 15,954
Blog Entries: 65
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 jorgeng
Ok, i look at sbs ea and come back later.

Do you think it is easy to code?
No idea. Igorad coded.
It is the better to look at Trade on Friday-Monday EAs codes as those EAs are more simple and were coded long time ago. But, if I remember, those EAs are closing profitable trades only in the end of the day but you may improve it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-10-2007, 08:09 PM
jorgeng's Avatar
Member
 
Join Date: Nov 2005
Posts: 64
jorgeng is on a distinguished road
Sorry,
i have no permission to see friday-monday page.



Quote:
Originally Posted by newdigital
No idea. Igorad coded.
It is the better to look at Trade on Friday-Monday EAs codes as those EAs are more simple and were coded long time ago. But, if I remember, those EAs are closing profitable trades only in the end of the day but you may improve it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-11-2007, 07:40 AM
Administrator
 
Join Date: Sep 2005
Posts: 15,954
Blog Entries: 65
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 jorgeng
Sorry,
i have no permission to see friday-monday page.

Sorry, I gave link to elite section.

It is public link Trade on ...
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
Script: Count your net positions in MT4 for a symbol ycomp Metatrader 4 4 11-10-2006 03:23 PM
EA - closing all positions at once. ra300z Metatrader 4 6 09-08-2006 01:45 AM
Can't get EA to close 2 Open positions??? skorcht Expert Advisors - Metatrader 4 4 08-07-2006 10:15 PM
Close all open positions jonjonau Expert Advisors - Metatrader 4 6 07-12-2006 05:01 AM
Close All Open Positions? lonespruce Metatrader 4 9 06-22-2006 07:20 AM


All times are GMT. The time now is 02:43 AM.



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