Forex



Go Back   Forex Trading > Discussion Areas > Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 04-10-2007, 11: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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2007, 12:08 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,082
Blog Entries: 243
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2007, 12:52 PM
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2007, 03:06 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,082
Blog Entries: 243
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 04-10-2007, 09: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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 04-11-2007, 08:40 AM
Administrator
 
Join Date: Sep 2005
Posts: 20,082
Blog Entries: 243
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Script: Count your net positions in MT4 for a symbol ycomp Metatrader 4 4 11-10-2006 04:23 PM
EA - closing all positions at once. ra300z Metatrader 4 6 09-08-2006 02:45 AM
Can't get EA to close 2 Open positions??? skorcht Expert Advisors - Metatrader 4 4 08-07-2006 11:15 PM
Close all open positions jonjonau Expert Advisors - Metatrader 4 6 07-12-2006 06:01 AM
Close All Open Positions? lonespruce Metatrader 4 9 06-22-2006 08:20 AM


All times are GMT. The time now is 11:49 AM.



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