Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Expert Advisors - 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 (2) Thread Tools Display Modes
  #31 (permalink)  
Old 07-16-2008, 09:25 AM
Member
 
Join Date: Dec 2006
Posts: 51
smartcamel is on a distinguished road
looking for a trailing stop EA

Hi All,

I am looking for a ea that can work as described below

1/ initial stop
2/moving the SL to the expected profit.
3/working as normal trailing stop with setting step size.
4/Reach to maximum profits: Take profit.

example:
1/ initial stop: 30pips. Open at price A. SL=A-30
2/ expected profit: 20pips. if the price reaches to 21pips from open position (A+21), moving the SL to the price "A+20". if the price reverses, we will have 20pips in pocket.
3/ trailing stop with stepsize 10pips: if the price reaches to 30pips from open position, the SL is still the "A+20" position. if it reaches to 40pips, SL will move to "A+20+10" position.
4/ if it reaches to maximum profit (100pips), take profit.

thanks so much

Last edited by smartcamel; 07-16-2008 at 10:42 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #32 (permalink)  
Old 08-12-2008, 07:40 PM
WNW's Avatar
WNW WNW is offline
Senior Member
 
Join Date: Feb 2006
Location: Motown, USA
Posts: 380
WNW is on a distinguished road
Close at Specified Price?

Hello,

Need an EA which will close all open orders at a specfied price.
Someone else posted this same request some time ago; Swiss Army Knife does NOT have this feature.

This in effect would act as a manual trailing stop.

An help appreciated.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #33 (permalink)  
Old 08-12-2008, 10:44 PM
Linuxser's Avatar
Moderator
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 2,426
Blog Entries: 5
Linuxser has disabled reputation
Quote:
Originally Posted by WNW View Post
Hello,

Need an EA which will close all open orders at a specfied price.
Someone else posted this same request some time ago; Swiss Army Knife does NOT have this feature.

This in effect would act as a manual trailing stop.

An help appreciated.

Thanks.
Take a look at this threaD: Help: How to write simple EA to buy and sell at a specific time?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #34 (permalink)  
Old 08-12-2008, 10:46 PM
Linuxser's Avatar
Moderator
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 2,426
Blog Entries: 5
Linuxser has disabled reputation
Quote:
Originally Posted by WNW View Post
Hello,

Need an EA which will close all open orders at a specfied price.
Someone else posted this same request some time ago; Swiss Army Knife does NOT have this feature.

This in effect would act as a manual trailing stop.

An help appreciated.

Thanks.
And this thread have almost all open/close tools
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #35 (permalink)  
Old 08-12-2008, 10:49 PM
WNW's Avatar
WNW WNW is offline
Senior Member
 
Join Date: Feb 2006
Location: Motown, USA
Posts: 380
WNW is on a distinguished road
Thanks for your reply.

Need to close orders at price, not time; have searched all related posts and have not found what I need.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #36 (permalink)  
Old 08-13-2008, 12:34 AM
WNW's Avatar
WNW WNW is offline
Senior Member
 
Join Date: Feb 2006
Location: Motown, USA
Posts: 380
WNW is on a distinguished road
Close at Price EAs

I managed to cobble these together, they work but I think they need some sort of loop to retry the closures and prevent error messages from occuring.

Use these to manually set a stop out price (trailing stop) for buys and sells.
It would be nice to combine these into one EA.

Any and all improvements welcome.
Attached Files
File Type: mq4 CloseAllBuysAtPrice.mq4 (2.6 KB, 9 views)
File Type: mq4 CloseAllSellsAtPrice.mq4 (2.6 KB, 8 views)

Last edited by WNW; 08-13-2008 at 12:37 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #37 (permalink)  
Old 08-21-2008, 06:00 AM
Hiyieldrater's Avatar
Junior Member
 
Join Date: Jan 2008
Posts: 11
Hiyieldrater is on a distinguished road
need help with this EA

Hi there, i found this EA in another forum. it is called "Profit protection", Basically it is a very simple EA. it breaks even your stoploss once your TP is hit and has a trailing stop to trail price. However i noticed that there's some kind of a bug when this EA is attached, my stoploss keeps on changing back and forth where it is supposed to be fixed and step by step when Trailing stops advances. can someone look at the codes?
Attached Files
File Type: mq4 ProfitProtection.mq4 (3.8 KB, 15 views)
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

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/expert-advisors-metatrader-4/58-trailing-stop-ea.html
Posted By For Type Date
פורום - STRATEGY BANK This thread Refback 01-06-2008 06:45 PM
ea - learn to trade forex swicki - powered by eurekster This thread Refback 07-21-2007 04:47 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set a trailing stop??? theolive9 Metatrader 4 1 12-05-2006 11:12 PM
EA trailing stop JoZo Metatrader 4 6 11-10-2006 01:34 PM


All times are GMT. The time now is 04:56 AM.



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