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 12-22-2006, 12:27 PM
Member
 
Join Date: Apr 2006
Posts: 45
Toccata is on a distinguished road
Two orders and trailing stop

To save having to re-invent the wheel, does anyone have an EA that is coded to:

1) Open two orders simultaneously and place a stop (15 pips) for both positions
2) Close one of the positions at +20 pips
3) Apply trailing stop of 20 pips to the second position as soon as 2) is executed.

That would be most helpful! thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-22-2006, 01:23 PM
Member
 
Join Date: Aug 2006
Posts: 73
gpw797 is on a distinguished road
here you go
Attached Files
File Type: mq4 ManageTPv2-2.mq4 (5.5 KB, 33 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-22-2006, 01:54 PM
Member
 
Join Date: Apr 2006
Posts: 45
Toccata is on a distinguished road
thanks for code

Thanks for code - Do both lots have to be on the same ticket (e.g. order number) for this to work or two seperate numbers? Thanks.
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
Trailing Stop EA for PENDING orders rjay Expert Advisors - Metatrader 4 1 12-05-2006 12:22 PM
Are stop orders necessary in EA? GP2X General Discussion 6 09-12-2006 06:22 PM
Limit/Stop Orders Expiry dates don perry Metatrader 4 1 06-14-2006 03:54 AM
trailign stop that close all orders at same price giraia_br Metatrader 4 1 06-12-2006 01:21 AM


All times are GMT. The time now is 03:50 AM.



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