Author Topic: Advanced Trailing Stop EA  (Read 118661 times)

Offline mozola

  • Jr. Member
  • **
  • Posts: 84
Advanced Trailing Stop EA
« Reply #240 on: October 07, 2013, 03:51:32 PM »

I just found ForexTrailer EA as an exit strategy Ea, 11 different strategies with 9 different trailings (atr, MA, bar high/low, psar, etc), it looks very promising for $97... Just started to use it today, will see...

« Last Edit: October 07, 2013, 03:53:49 PM by mozola »

Offline sundar04

  • Newbie
  • *
  • Posts: 1
Re: Advanced Trailing Stop EA
« Reply #241 on: October 26, 2015, 03:43:59 PM »
Quote from: kennyhubbard link=msg=73336 date=1298499075

Hi Guys,

CAJUN, I have included a setting now to change the color of the text.

Guys, please download this version rather than the previous, as there was a small bug in the calculation of the accelerated trail decay.



Hi Kenny,

How do i download this EA?

Offline localhost

  • Newbie
  • *
  • Posts: 1
Re: Advanced Trailing Stop EA
« Reply #242 on: February 19, 2016, 12:25:47 PM »
Nice, thanks!

Offline birlov

  • Newbie
  • *
  • Posts: 1
Re: Advanced Trailing Stop EA
« Reply #243 on: April 14, 2016, 12:41:24 PM »
Hi, I don't see the EA link to download it...where it's?

Offline Earleone

  • No pain, no gain
  • VIP
  • Sr. Member
  • ****
  • Posts: 883
Re: Advanced Trailing Stop EA
« Reply #244 on: April 25, 2016, 07:44:58 PM »
Think it disappeared when Donnaforex was changing host . I found one version on an earlier MT4 installation I had and attach here. Developers site was also the link to download broken.
« Last Edit: April 25, 2016, 07:58:48 PM by Earleone »

Offline 634954653

  • Newbie
  • *
  • Posts: 1
Re: Advanced Trailing Stop EA
« Reply #245 on: February 10, 2017, 08:00:37 AM »
where can I download it?

Offline nphit2222

  • Newbie
  • *
  • Posts: 1
Re: Advanced Trailing Stop EA
« Reply #246 on: March 06, 2017, 09:33:50 AM »
Hi Guys,

NOTE : Latest version of this EA will always be attached to the first post.

Here is a trailing stop EA that I have made. I like to think of it as a pretty advanced EA but that is for you guys to decide 8)

Use of the Compuforex Trailing Stop

Typical User default settings are as follows :-

  • MagicNumber    = -1
  • Own_Symbol_Only = false
  • Trail_Start    = 10
  • Trail_Max      = 50
  • Trail_Percent  = 50
  • Trail_Min      = 5
  • Use_Decay      = true
  • Decay_Rate     = 1
  • Wait_Bars      = 4
  • Min_Mod        = 0.5
  • Audio_Alert    = true
The trailing stop has the following feature/functions :-

1.     Trail starts at number of pips defined by the user;
2.     EA will trail your order by a % of the profit as defined by the user e.g. 50% trail>>>>20 pips profit = 10 pips trail;
3.     Trail is limited to a maximum trail by the user e.g. 50% of profit until trail reached 50 pips, thereafter trail at constant 50 pips;
4.     The EA can reduce(or decay) the trail % at a user defined rate per bar;
5.     The user can choose to have the EA accelerate the trail decay;
6.     The user can have the EA wait before the trail decay commences;
7.     User can define the minimum pip change to the trail to reduce trade thread activity;
8.     User can choose whether to have an audio annunciation of trail commencement;
9.     A lot of attention has been given to order persistence. You can close the EA or crash the platform and the EA will pick up where
             it left off, having recorded all trade information to file. When reloading the EA, the file is verified against existing trades
       and old data discarded, new data added and only valid data is used.
10.    There is more screen output that keeps the user informed as to the EA's activity.
11.    The EA will trail multiple currencies simultaneously, automatically correcting for 4/5 digit brokers and 2/4 digit instruments;
12.    The user can choose to use on only a single currency if required.;
13.    The user can elect to trail only a specific MagicNumber if required   

A brief explanation of the settings :-

MagicNumber - Use this to set a specific MagicNumber to be trailed. This is when you are using this EA in conjunction with another EA.
                     Set this to -1 to trail all MagicNumbers(including manual trades).
Own_Symbol_Only - if set to true, will ONLY trail the currency pair of the chart on which the EA is loaded.
Trail_Start    - This is the number of pips in profit a trade must be for the EA to commence trailing a trade.
Trail_Max      - As profit increases, so will the trail....this setting sets the maximum number of pips in trail that the trail will be allowed.
Trail_Percent    - this is the % of profit to trail by. A big % equals a long trail. E.g 100% would be break even. 5% would be a very tight trail.
Trail_Min        - this is used in conjunction with the trail decay. The trail % is reduced over time(per bar) down to this value in this case 5%.
Use_Decay        - Tell the EA if you want to use the trail decay or not.
Decay_Rate       - this is the rate at which the trail decay will occur. In this example, the trail will reduce from 50% at a rate of 1% per bar.
                       There is more than 1 way to use this bcause an additional variable is the timeframe of your chart. You could run this on the M1 chart
                       which would result in a decay rate of 1% per minute. You could also run on the M5 which would result in a decay rate of 12% per hour,
                       etc, etc.....
Exp_Decay        - this is for an exponential decay. In this case, the initial decay rate is by default 1% and you cannot change that. On the first bar, the
                       trail is reduced by 1%, on the next bar it is reduced by 2% and then 4% on the next bar. My thinking is this would be good for catching breakouts.
Wait_Bars        - Oncethe trail is running at the Trail_Percent, this setting will tell the EA to wait before it starts to decay the trail. You may want to trail at 75%
                     for 30 minutes and then only start winding in the trail.
Min_Mod          - This setting tells the EA not to adjust the trail with every single 1/10 pip but will only make changes every 0.5 pips. This reduces thread activity which
                     may be a factor if you are trading several EA's(think of 'Trade Context is Busy').
Audio_Alert       - Enables or diables the trail commencement audio alarm(was more useful for me for testing).
Show_Info      - Enables/Disables on-screen output. Output is for user benefit only. If you do not need it, turn it off to conserve resources.
Text_Color     - You can now select the color of the text for the screen output.

You are welcome to ask questions but please don't ask me what settings work best. You need to experiment and determine those....and feedback will be appreciated.

Updates :

24 Feb is common practice on many forums, the latest update to this EA will always be found on the first post.
21 March 2011 - Update

Ability to add a hard stoploss has been added to this EA.

As always, it is never a simple case of just setting a stoploss. I have allowed for 3 ways to set a stoploss, namely :-

1. Straight-forward manually specified stoploss eg 20 60 pips;
2. A stoploss based on recent highs or lows;
3. A stoploss based on % loss per trade ie you have a $10 000 account and prepared to lose 1%($100) the EA will calculate the stoploss based on the tradesize that it finds.

Settings and defaults are as follows :-

Set_SL         = true;
Set_SL_Delay   = 15;
Manual_SL      = 0;
SL_Buffer      = 15;
SL_Hours       = 6;
SL_Max         = 60;
Use_RiskPercent_SL = false;
Risk           = 1;

Use the settings as follows :-

Set_SL...........This is the master ON/OFF switch for the SL feature. If set to false, no SL will be entered.
Set_SL_Delay.....Make the EA wait before it enteres a SL. The EA you may be combining this with may set its own stoploss and this delay will allow that EA to enter its own stoploss before taking over the trade. If a stoploss exists, this EA will NOT overide that SL.
Manual_SL........This is the stright-forward manual SL. Enter whatever SL you desire and be aware that this overides ALL other stoploss features. Make sure this is 0 if you want to use any of the other stoploss features.
SL_Buffer........Used for the recent high/low calculated SL. This EA will look back x number of hours and for a buy will enter a SL the the low less this buffer and VV for a sell.
SL_Hours.........The number of hours to look back for recent highs/lows.
SL_Max...........When looking back, there may have been some extreme moves in the market. This setting will allow the EA to look for recent high/lows plus buffer, but will also limit the final stoploss to a number that may be more acceptable. Also note that should you be trading a counter trend strategy, you may be presented with a situation where the CURRENT bar is the highest or lowest, this may leave you with an unnessesarily tight stoploss, in which case the SL will revert to this SL_Max value. This only applies when the current bar is the high or low as the case may be.
Use_RiskPercent_SL....This will make the EA calculate the SL based on risk % rather than high/lows. It looks at the trade size and will calculate the SL to be such that you will lose a % of your account if the SL is hit.
Risk..................This is the % of account loss that the EA will calculate the SL for should the Use_RiskPercent_SL be set to true.

Note that the Use_RiskPercent_SL overides the high/low bar SL, as well as the SL_Max setting. Also note that the Risk % SL is a simple calculate SL by trade size and nothing else. If your EA makes multiple trades, this EA will treat each trade as an individual trade and does not consider the impact of the trades as a basket.

I have done some basic testing, but you need to test this with your own broker and your own preferred settings, as I cannot check all permuations of options and brokers.

Please report any bugs here.

Update : 14 April 2011 : Version 1.2......EA will now overide the Target EA SL if SL_Overide is set to true
                                                         Fixed a bug with SL high/low determination
                                                         Removed superfluous comments in the experts tab
UPdate : 10 May 2011 : Version 1.7......Wait_Bars now changed to Wait_Mins. This still does the same thing, except now you can specify minutes    to wait instead of bars to wait. Allow you to run the EA on ony timeframe.

Update 16 May 2011 : Version 1.8 allows the lookback period for high/low stoploss calculation to be entered in minutes for trading shorter timeframes. SL_Hours is changed to SL_Minutes.

Offline akkivivek

  • Newbie
  • *
  • Posts: 1
Re: Advanced Trailing Stop EA
« Reply #247 on: April 08, 2017, 06:21:35 PM »
The download link is not working can you post a new one

Online diyforexskills

  • Verified Vendor
  • Sr. Member
  • ***
  • Posts: 1342
Re: Advanced Trailing Stop EA
« Reply #248 on: April 09, 2017, 08:39:30 AM »
I still have v1.91 of the compuforex Trailing EA and v1.2 of the TM into which it morphed, from Kenny; but have not used them. Not sure whether they are compatible with MT4 Build 600+

An alternative, not free, but reasonably priced for its many features is

There are six methods by which the TM can trail stops a fixed TS in pips or a dynamic TS using ATR, PSAR, Fractals, % Profit or MA. You can also specify whether the trailing occurs at candle close or at any time during a candle or bar period; and you can select whether to apply a TS that starts at a specified pip value or one which starts when the trade is first entered.
Information and product page -

Offline carstentrading

  • Newbie
  • *
  • Posts: 1
Re: Advanced Trailing Stop EA
« Reply #249 on: April 26, 2017, 03:33:44 PM »
Can't download.

Offline gilfx

  • Newbie
  • *
  • Posts: 1
Re: Advanced Trailing Stop EA
« Reply #250 on: November 17, 2017, 06:24:30 PM »
The link isn't valid anymore!!!!

Online energetic

  • Jr. Member
  • **
  • Posts: 48
Re: Advanced Trailing Stop EA
« Reply #251 on: November 18, 2017, 10:37:22 AM »
Please share the download link. Thanks.

Offline jawad

  • Newbie
  • *
  • Posts: 1
Re: Advanced Trailing Stop EA
« Reply #252 on: July 18, 2018, 02:54:19 AM »
Kenny  how to download  it where is attachment

Offline torrie602

  • Jr. Member
  • **
  • Posts: 93
Re: Advanced Trailing Stop EA
« Reply #253 on: July 18, 2018, 12:13:46 PM »
Kenny  how to download  it where is attachment
You can get it at Forex Factory

Offline iakhantrader

  • Newbie
  • *
  • Posts: 1
Re: Advanced Trailing Stop EA
« Reply #254 on: January 21, 2019, 02:21:53 PM »
Great EA


browse forum