Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent 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 09-03-2009, 04:01 PM
Junior Member
 
Join Date: Mar 2007
Posts: 13
jeffreytp is on a distinguished road
WANTED: EA to Open & Close Orders

When I open this EA on a chart I would like it to have the following inputs:

1. Magic #
2. Lot size
3. Indicate One Pair to Buy
4. Indicate One Pair to Sell
5. Profit in $
6. Open New Order (True= to open new orders and assign the inputted magic # to the new opened orders opened by the EA, False=do not open new orders)

Rules for closing trades: close all open orders whose magic # equals the input, and combined profit of all pairs with this magic # = profit input)

I have seens EA's where when instructed to close trades some are left open for some reason. I do not want TP, SL, slippage, or requote to affect the opening and closing of orders. I want open and closing of orders to be forced until they are open or closed at the market, regardless of slippage or requote.

"Trade context is busy” may occur when two or more orders are trying to be processed at the same time. If a trade is placed and do not wait until it processes completely and then try to place the same trade or a different trade, the commands go into a loop and “Tread context is busy” is received. So with this EA one order should finish processing before the 2nd order is inditiated, both on the open and close.

Please post the MQ4 file which should be open for future edits.

Your help in creating this EA would be appreciated.

Last edited by jeffreytp; 09-03-2009 at 04:19 PM.
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
Close all open orders EA nubika Expert Advisors - Metatrader 4 30 10-31-2009 01:40 PM
EA to close pending and open orders!! criss73 Expert Advisors - Metatrader 4 7 04-08-2009 06:48 AM
close all open orders script forextrend General Discussion 2 12-17-2006 07:16 AM
Script to close open orders... babarmughal Expert Advisors - Metatrader 4 1 12-13-2006 05:50 PM
How do I open and close multiple orders for a single account? iboersma Questions 4 05-26-2006 02:28 PM


All times are GMT. The time now is 05:16 AM.



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