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 09-01-2007, 08:41 PM
Junior Member
 
Join Date: Jan 2007
Posts: 7
telefrancisco is on a distinguished road
How to mantaint a single order opened (in an EA)?

Hi, may I ask:

It's possible when an EA opens an order, keep JUST that order?

I mean, I want that, whean an EA opens an order, keep that order until S/L or T/P is reached, and just to open positions where there are no orders opened.

Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-01-2007, 10:04 PM
WNW's Avatar
WNW WNW is offline
Senior Member
 
Join Date: Feb 2006
Location: Motown, USA
Posts: 384
WNW is on a distinguished road
Yes, certainly.
You need to be more specific, maybe the EA you're referring to is designed to take multiple positions..?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-01-2007, 10:36 PM
Junior Member
 
Join Date: Jan 2007
Posts: 7
telefrancisco is on a distinguished road
Quote:
Originally Posted by WNW View Post
Yes, certainly.
You need to be more specific, maybe the EA you're referring to is designed to take multiple positions..?
No, the EA I'm talking of is designed to keep and mantain a single position until S/L or T/P is reached.

Thanks for answering.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-02-2007, 01:04 PM
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
As I understand you are talking about one order per chart, right?
Most of EAs were coded as one order per chart so it is very usual case.
For some usefull codes please look at this thread dose it posible to creat any function of "mql code" posting in this forum? and about how to code one order per chart/Metatrader/candle and so on please read this thread Basic questions ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-02-2007, 05:58 PM
european's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 284
european is on a distinguished road
RE: only one order

There are several ways to do it, check for TotalOrders(), for unique MagicNumber(), OrderComment() or OrderSymbol().

I would do it with MagicNumber.

cheers

euro
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 09-02-2007, 09:54 PM
Junior Member
 
Join Date: Jan 2007
Posts: 7
telefrancisco is on a distinguished road
Thanks everybody for the answers
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
Open Order and Close Order Sean0 Expert Advisors - Metatrader 4 3 07-04-2007 05:41 PM
apply template to all opened charts emdafx Metatrader 4 0 05-23-2007 04:00 PM
Do you trade multiple EAs from a single account? tdion Expert Advisors - Metatrader 4 1 03-16-2007 04:47 AM
How do I open and close multiple orders for a single account? iboersma Questions 4 05-26-2006 01:28 PM


All times are GMT. The time now is 05:42 PM.



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