Forex Forums | ForexLasers.com


Go Back   Forex Lasers Forum > METATRADER FORUM > Expert Advisors / Robots


Trailing Stop EA

Expert Advisors / Robots


Reply
 
LinkBack Thread Tools Search this Thread
  #1  
Old 23-02-2009, 14:56
vanhook2's Avatar
Level IV Lasers Member
 
Join Date: Feb 2009
Posts: 122
Default Trailing Stop EA

Here is a Trailing Stop EA & manual.
Set it up & place your trade, the EA will handle the rest for you.
Attached Files
File Type: pdf Trailing_Stop_Manual[1].pdf (110.0 KB)
File Type: mq4 TrailingStopEA.mq4 (9.2 KB)
File Type: ex4 TrailingStopEA.ex4 (8.1 KB)
Reply With Quote
  #2  
Old 05-03-2009, 23:08
Level 1 Lasers Member
 
Join Date: Mar 2009
Posts: 4
Default

looks good
Reply With Quote
  #3  
Old 07-03-2009, 05:35
Level 1 Lasers Member
 
Join Date: Nov 2008
Posts: 2
Default

Thank you, that is what i was looking for.
Reply With Quote
  #4  
Old 14-03-2009, 05:30
Level 1 Lasers Member
 
Join Date: Mar 2009
Posts: 2
Default

Quote:
Originally Posted by vanhook2 View Post
Here is a Trailing Stop EA & manual.
Set it up & place your trade, the EA will handle the rest for you.
Hi,
Can you please explain how I can set it up in my meta trader.I try to put it like other expert advisor but it does not show up in experts or indicators. I know nothing about program or not a computer tec.I appreciate your help.
Have a good week end.
Reply With Quote
  #5  
Old 29-03-2009, 06:24
Level 1 Lasers Member
 
Join Date: Mar 2009
Posts: 2
Default

Quote:
Originally Posted by fxnew View Post
Hi,
Can you please explain how I can set it up in my meta trader.I try to put it like other expert advisor but it does not show up in experts or indicators. I know nothing about program or not a computer tec.I appreciate your help.
Have a good week end.
You have probably worked this out already, but if not...

BOTH files need to be copy/paste into Experts folder in your platform folder. Close your platform then reopen. Go to Expert Advisor's in Navigator and it will be there as Traling Stop EA. Read the manual for personal preference changes.
Reply With Quote
  #6  
Old 29-03-2009, 06:27
Level 1 Lasers Member
 
Join Date: Mar 2009
Posts: 2
Default

Just wanted to say 'Thank You' Vanhook2. Great EA.
Reply With Quote
  #7  
Old 02-04-2009, 05:59
Level II Lasers Member
 
Join Date: Feb 2009
Posts: 27
Default

Thanks......works great.....needed this along time ago
Reply With Quote
  #8  
Old 02-04-2009, 10:32
vanhook2's Avatar
Level IV Lasers Member
 
Join Date: Feb 2009
Posts: 122
Default your welcome

Quote:
Originally Posted by jake View Post
Thanks......works great.....needed this along time ago
I did not code it, I just found it & liked it.
I hope it helps you all.:)
Reply With Quote
  #9  
Old 02-04-2009, 11:57
Level 1 Lasers Member
 
Join Date: Apr 2009
Posts: 2
Default trailing stop ea

seems to work perfectly but i still have little problems with the settings please could you explain it for me thanks a lot:confused:
Reply With Quote
  #10  
Old 02-04-2009, 12:52
vanhook2's Avatar
Level IV Lasers Member
 
Join Date: Feb 2009
Posts: 122
Default

Quote:
Originally Posted by onyeabo View Post
seems to work perfectly but i still have little problems with the settings please could you explain it for me thanks a lot:confused:
Ummm.....

Read the manual.
Reply With Quote
  #11  
Old 02-04-2009, 12:57
Level II Lasers Member
 
Join Date: Feb 2009
Posts: 22
Default

Quote:
Originally Posted by vanhook2 View Post
I did not code it, I just found it & liked it.
I hope it helps you all.:)
Hi,

Thanks.......

Have a good day
Reply With Quote
  #12  
Old 03-04-2009, 05:40
Level 1 Lasers Member
 
Join Date: Apr 2009
Posts: 6
Default

Thankyou Vanhook2...much appreciated.
Reply With Quote
  #13  
Old 03-04-2009, 11:27
Level 1 Lasers Member
 
Join Date: Apr 2009
Posts: 6
Default

myfxidea.com also has a free trailing-stop EA available for download which might be of interest. I haven't used it. It's zipped so you'll need Power Archiver or equivilent to unzip it. Anyone know of an AO Indicator with a Alert that sounds whenever the colours change?
Reply With Quote
  #14  
Old 03-04-2009, 16:23
vanhook2's Avatar
Level IV Lasers Member
 
Join Date: Feb 2009
Posts: 122
Default FYI!

Interbank FX is introducing 5th decimal pricing!
As part of our continuing commitment to delivering the optimal customer experience we are introducing 5th decimal pricing on our currency pairs. The 5th decimal prices will be available on our demo servers on Sunday afternoon at 6pm EST on April 12th, 2009 and will be available on the live trading servers on Sunday afternoon at 6pm EST on May 17, 2009.

Why 5th decimal pricing?
Adding the 5th decimal point can reduce the spread, or difference between the buy and sell prices of a currency pair. You may notice tighter spreads as we enable the 5th decimal pricing on our trading platforms.

How will this effect Expert Advisors (EAs)?
Most EAs will be affected by the introduction of the 5th decimal point. Please make sure that you have adjusted all pip value related parameters, such as take profits or stop losses, to allow for the additional decimal point. For instance, if you are currently using a stop loss level of 20 on a four decimal pair, you would have to change the value to 200 to get the same execution on a pair with a 5th decimal. Please be aware that some EAs will need fundamental changes to ensure that they will work as you expect. We would suggest that you use your EAs on our demo accounts before using them on your live account to ensure they are working properly.

How does this effect Stop Losses, Take Profits and Maximum Deviation?
All take profit, stop loss and maximum deviation values that are expressed in points should be multiplied by 10. For example, if you would like to enter a Maximum Deviation of 5 pips, you would enter 50 into the Maximum Deviation field.

How does this effect the profit / loss values expressed in the Trade tab in the Terminal?
All profit & loss values already incorporate the 5th decimal place adjustment when they are expressed as Points in the Profit column under the Trade tab in the Terminal window in MetaTrader.

Does this effect Trailing Stops?
Yes. When you are setting a trailing stop value you will multiply it by 10.

Who do I contact if I have additional questions?
You can contact our award-winning customer service team from Sunday at 5:00pm EST to Friday at 5:00pm EST by email, phone or live chat.

Toll Free:
US and Canada: 866.468.3739
Australia 1.800.884.912
Indonesia 001.803.017.9112
Malaysia 1.800.813.776
New Zealand 0800.445647
Singapore 800.101.2097
United Kingdom 0.808.120.1966
International: +1.801.930.6800


Email:
help@ibfx.com

Live Support:
Click here

- The IBFX Team
Reply With Quote
  #15  
Old 04-04-2009, 08:44
Level 1 Lasers Member
 
Join Date: Apr 2009
Posts: 2
Default

okay thanks a lot i will get back to you
Reply With Quote
  #16  
Old 13-04-2009, 22:32
Level 1 Lasers Member
 
Join Date: Apr 2009
Posts: 3
Default Trailing stop

Very interesting, this is a bad shortcoming of MT4 (minimum 15 pip trailing stop) - will give it a go. Thanks
Reply With Quote
  #17  
Old 21-04-2009, 06:24
Level II Lasers Member
 
Join Date: Feb 2009
Posts: 27
Default

Quote:
Originally Posted by vanhook2 View Post
Here is a Trailing Stop EA & manual.
Set it up & place your trade, the EA will handle the rest for you.
FYI I was able to go in and change the minimum number if you want it lower.

did it just for kicks.....lol
Reply With Quote
  #18  
Old 21-04-2009, 16:16
Banned
 
Join Date: Apr 2009
Posts: 1
Default

Interesting stuff...thanks
Reply With Quote
  #19  
Old 21-04-2009, 16:23
vanhook2's Avatar
Level IV Lasers Member
 
Join Date: Feb 2009
Posts: 122
Default

Quote:
Originally Posted by RobertHessener View Post
Interesting stuff...thanks
Your are welcome.
Hope it helps.:)
Reply With Quote
  #20  
Old 22-04-2009, 00:17
Level II Lasers Member
 
Join Date: Feb 2009
Posts: 27
Default

Quote:
Originally Posted by vanhook2 View Post
Not me. The TS is the only one I use.
stupid question time

what do you mean....trailing stop????
Reply With Quote
  #21  
Old 22-04-2009, 11:48
vanhook2's Avatar
Level IV Lasers Member
 
Join Date: Feb 2009
Posts: 122
Default

Quote:
Originally Posted by jake View Post
stupid question time

what do you mean....trailing stop????

Maybe this will help you.



Trailing Stops - Interbank FX
Reply With Quote
  #22  
Old 22-04-2009, 12:23
Level III Lasers Member
 
Join Date: Feb 2009
Location: australia
Posts: 69
Default

i am looking for a ea that can do the folowing,
A) take profit at 3 stages eg- if my target is 150, frofits are taken at 50/50/50

B) once the first take profit is executed, stop to move to break evan and not move any further.

i know i am asking for alot but you never know might be something out there.

oh and take profit and initial stop loss should be adjustable because all pairs move diferantly. cheers.
Reply With Quote
  #23  
Old 22-04-2009, 13:02
Level II Lasers Member
 
Join Date: Feb 2009
Posts: 27
Default

Quote:
Originally Posted by bill77 View Post
i am looking for a ea that can do the folowing,
A) take profit at 3 stages eg- if my target is 150, frofits are taken at 50/50/50

B) once the first take profit is executed, stop to move to break evan and not move any further.

i know i am asking for alot but you never know might be something out there.

oh and take profit and initial stop loss should be adjustable because all pairs move diferantly. cheers.
What you want to do is very straightforward.

There are probably several solutions, but the obvious one involves splitting the initial OrderSend() function into 3 seperate orders each with a different magic number and a different TP target. It will then be straightforward to modify the TPs of orders 2 and 3 once the bid reaches TP 1.

You didn't say what the entry conditions are for your EA, or even if you had an EA on which you wanted to apply the TP rules. If you want to paste up either some code or the EA itself, I'll modify it for you once I get a bit of spare time.
Reply With Quote
  #24  
Old 22-04-2009, 21:16
Level III Lasers Member
 
Join Date: Feb 2009
Location: australia
Posts: 69
Default

Quote:
Originally Posted by jezzer1961 View Post
What you want to do is very straightforward.

There are probably several solutions, but the obvious one involves splitting the initial OrderSend() function into 3 seperate orders each with a different magic number and a different TP target. It will then be straightforward to modify the TPs of orders 2 and 3 once the bid reaches TP 1.

You didn't say what the entry conditions are for your EA, or even if you had an EA on which you wanted to apply the TP rules. If you want to paste up either some code or the EA itself, I'll modify it for you once I get a bit of spare time.
wow jezzer thanks for your reply. if you can add entry condition on this ea, would be the ultimate.

Entry- what i look for is price close past 15ema. then the retrace to 7ema will be a trigger.

stop loss- should be adjustable to suit pair. eg: eur/usd pair 30 pips stop from 7ema triger entry price take profit would be 90 pips (30/30/30)

where as gbp/jpy stop would be 50 pips take profit 50/50/50

what you would get is a RR 1-3

Thanks jezzer hope my explanation is what you meant. ....cheers

Oh one last thing, if a candle closes back past the 15ema after a trade is opened, the existing trade should close evan though it will be with a loss, and now the new trade or order will open. dont want to have two trades going on opisite each other. cheers

Last edited by bill77; 22-04-2009 at 21:37.
Reply With Quote
  #25  
Old 23-04-2009, 06:36
Level II Lasers Member
 
Join Date: Feb 2009
Posts: 27
Default

Hi Bill,

I wasn't actually planning to write the whole EA for you from scratch. I thought that you had one already that you just needed some ideas on how to modify/split the TPs and SLs.

Sorry if I confused you, but there's a difference between making a 5 minute modification and writing and testing a whole EA. :eek:

There are actually plenty of free moving average based EAs out there already. You just need to search a few of the forums until you find something that does what you want. I think there's probably a MA crossover EA that I've seen on the MQL4 website, but it will probably just enter at the crossover itself rather than wait for a retracement to the faster MA.

Once you find something that goes part of the way, paste it up here and I'll look at modifying it for you.
Reply With Quote
  #26  
Old 23-04-2009, 07:27
Level III Lasers Member
 
Join Date: Feb 2009
Location: australia
Posts: 69
Default

Quote:
Originally Posted by jezzer1961 View Post
Hi Bill,

I wasn't actually planning to write the whole EA for you from scratch. I thought that you had one already that you just needed some ideas on how to modify/split the TPs and SLs.

Sorry if I confused you, but there's a difference between making a 5 minute modification and writing and testing a whole EA. :eek:

There are actually plenty of free moving average based EAs out there already. You just need to search a few of the forums until you find something that does what you want. I think there's probably a MA crossover EA that I've seen on the MQL4 website, but it will probably just enter at the crossover itself rather than wait for a retracement to the faster MA.

Once you find something that goes part of the way, paste it up here and I'll look at modifying it for you.
no problems sory for my misunderstanding. thanks for your generosity for now i will manual trade and see how we go. if its worth it i will look further later on in getting one developed. cheers
Reply With Quote
  #27  
Old 23-04-2009, 08:46
Level II Lasers Member
 
Join Date: Feb 2009
Posts: 27
Default

Bill,

I've attached a Universal MA cross EA (free on the internet) which will do some of the things that you want it to do, although it won't wait for a retracement before entering the market and it won't split your orders.

I suggest that you test it first to see what features you like or dislike about it and then look to make the modifications it from there.
Attached Files
File Type: mq4 universalMACrossEA.mq4 (32.8 KB)
Reply With Quote
  #28  
Old 23-04-2009, 19:21
vanhook2's Avatar
Level IV Lasers Member
 
Join Date: Feb 2009
Posts: 122
Default

Quote:
Originally Posted by bill77 View Post
i am looking for a ea that can do the folowing,
A) take profit at 3 stages eg- if my target is 150, frofits are taken at 50/50/50

B) once the first take profit is executed, stop to move to break evan and not move any further.

i know i am asking for alot but you never know might be something out there.

oh and take profit and initial stop loss should be adjustable because all pairs move diferantly. cheers.
Bill77,
See if this is what you are looking for.
I found it today & I remembered your post. It's a trade manager.
Both the EA & Manual are attached.


The following is what the author wrote when he posted it.....


THV CaveManager v1.1


This is a trade management EA designed for the Cobra THV Trading System. As with THV, it is FREE. All are welcome to use it.

Features
1. Set SL and TP for you once you open a position.
2. Take profit by SDX-TzPivot levels (mid levels supported) in 3 sets.
3. Take profit by batches on pips gain in 3 sets.
4. Capital protection once market moves in your favor by pip value.
5. Staggering of losses if market moves against you.
6. Pip-by-pip trailing stop once pip target reach.

* all features are hidden except for 1 and 6

This EA has been thoroughly tested and proved working to the best of our abilities. Same rules applies here similar to running other EAs. Do not change TF or close MetaTrader when there is a position being managed by the EA. Nevertheless, to cater to such "accidents", the EA is coded to recover in such situations. May not be back to the original state of being managed but in a way to minimize loss if such were to occur.

As with any new system, do spend some time reading through the short documentation to understand how it works and most important of all, test it out on demo before using it on your Live account.
Attached Files
File Type: ex4 THV CaveManager v1.1.ex4 (29.9 KB)
File Type: pdf THV CaveManager v1.1[1].pdf (41.2 KB)
Reply With Quote
  #29  
Old 14-09-2009, 14:03
Level 1 Lasers Member
 
Join Date: Sep 2009
Location: carson, ca
Posts: 1
Send a message via Yahoo to angieforex
Default unable to change inputs

Hi thanks for the EA, I always thought metatrader was lacking because it did not have trailing stops.
But i am unable to change the input values in the EA.
I have tried clicking and right clicking and nothing happens.
How can i change the default inputs which are not the same as in the manual.
thanks
Reply With Quote
  #30  
Old 14-09-2009, 16:40
Level 1 Lasers Member
 
Join Date: Sep 2009
Location: ISLANDS
Posts: 1
Default modify ea

hey every one
can some please add 3 step take profit system to this ea for me
like break even at 50 then at 100 then at 150...also add manage all symbal buy and sell orders setting should be a justabble.thanks for the help...........:D

i want to up the ea i am talking but i don't see see where to do it:confused:
Reply With Quote
  #31  
Old 15-11-2009, 17:24
Level II Lasers Member
 
Join Date: Nov 2009
Posts: 48
Default trailing ea

Vanhooks2,
I"ve just join this site,i must let you know that i found the information on the trailing stop very useful.
Reply With Quote
  #32  
Old 24-08-2010, 16:47
Level 1 Lasers Member
 
Join Date: Aug 2010
Posts: 1
Default

Quote:
Originally Posted by okitikan View Post
Vanhooks2,
I"ve just join this site,i must let you know that i found the information on the trailing stop very useful.
Me too!the EA is great,would somebody please advise me on the inputs, mine seems to close the trade too early before i get the maximum profit.

Last edited by moogul; 24-08-2010 at 16:49.
Reply With Quote
  #33  
Old 01-11-2010, 08:24
Level II Lasers Member
 
Join Date: Oct 2010
Posts: 22
Default

MetaTrader 4 terminal is a perfectly equipped traders workplace that allows to trade in the financial markets (Forex, CFD and Futures). It provides the necessary tools and resources to analyze price dynamics of financial instruments, make the trade transactions, create and use automated trading programs (Expert Advisors). It represents the all-in-one concept and is the most popular trading terminal in the world.
Reply With Quote
  #34  
Old 15-11-2010, 15:08
Level 1 Lasers Member
 
Join Date: Nov 2010
Posts: 2
Default Need your attention!!! Please :)

I'd like to take some of your time and share my experience with you...
I'm kinda new to Forex and markets themselves but still I'm full of wishes to be a successful person and really really gonna make all the things, depended on me, get success.
For now the only thing that helps me to move that way is

I guess you'll like it just like I did... :)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
The difference between Stop Loss and Limit orders! Johny Forex Discussion 2 06-06-2014 02:09
Quick Trailing EA boylan Expert Advisors / Robots 11 21-10-2013 15:38
Jump Stop EA ezyazpie Expert Advisors / Robots 3 16-06-2009 21:04


All times are GMT. The time now is 05:03.


Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2019, vBulletin Solutions, Inc.