Trader Nexus_ Advanced Trailing Stop Metastock Stop Loss Plugin

download Trader Nexus_ Advanced Trailing Stop Metastock Stop Loss Plugin

of 6

Transcript of Trader Nexus_ Advanced Trailing Stop Metastock Stop Loss Plugin

  • 7/26/2019 Trader Nexus_ Advanced Trailing Stop Metastock Stop Loss Plugin

    1/6

    8/3/2015 Tr ader Nexus: Advanced Tr ai li ng Stop M etastock Stop Loss Pl ugi n

    http://www.tradernexus.com/advancedstop/advancedstop.html 1/6

    TRADER NEXUS

    ADVANCED TRAILING STOP

    Introduction Why have I developed this? ATR Multiples Trade Stages Examples FAQ Disclaimer Downloads

    INTRODUCTION

    The Advanced Trailing Stop, based on the Chandelier Exitdeveloped by Chuck Le Beau, is volatility-based. Dr. Van K. Tharp in his book Trade yourway to Financial Freedomsays "volatility stops are among the best stops you could select". I've been using the volatility stop technique for a few years

    now.

    Using the Metastock Developer's Kit, I developed a I developed a Metastock DLL because the Metastock Formula Language lacked a simple way ofreferencing prices from the entry day of the trade. If you just want to download the DLL, scroll to the bottom of this page.

    Many traders set stops according to a fixed % movement. However, the % method needs to be adjusted according to the volatility of the security beingtraded. Using a volatility based stop means that your stop automatically takes account of the security's volatility.

    For example, if the security has a high volatility, your stops will be a reasonable distance away from the price action (to give the security room to movein its normal intraday movements). If a security has a low volatility then the stop will be relatively closer to the price action. If the security's volatilitychanges whilst a trade is underway, the stops will adjust according to this volatility. The advantage to this type of stop is that it can be used in anymarket (blue chip stocks, speculative stocks, futures, index trading, mutual funds etc.)

    The Advanced Trailing Stop has the following components:

    Initial Stop, expressed in terms to the entry day (eg. Closing price less 2 ATRs)

    Trailing Profit stop, calculated on each bar of the day after entry (eg. High less 3.5 ATRs)

    Optionally, you can also incorporate the following types of stops:

    Breakeven stop - this is calculated on the entry day and is implemented when the stock passes a "transition point". (eg. Move my initial stop toa breakeven stop when the price closes 2 ATRs above my entry price). I believe this transition/breakeven stop was part of the original Turtlestrading technique.

    Pyramid Points/Tightening Stops - the Trailing Profit Stop can be recalculated when the stock passes further transition points. I have definedtwo such points. (eg. When the stock moves more than 4 ATRs above my entry price, change to a trailing profit stop that is the High less 3

    ATRs. If it reaches 6 ATRs above my entry price, change to a t railing profit stop t hat is the high less 2.5 ATRs). Chuck Le Beau talks aboutthis tightening of the stops in his original newsletter.

    If any of your stops are hit, the Stop Loss line will continue to be drawn across the screen. This is good for your psychologically if you can't get out of atrade. It'll keep telling you to get out! The line will not trail the price any further (it will be flat) just to re-emphasise that you should be out of the trade.

    WHY HAVE I DEVELOPED THIS?

    It's something I use in my own personal trading. Developing in Visual C++ with the Metastock Developer's Kit is something very few people have theskills to perform and I thought I'd give something back to the rest of the trading community. Perhaps you'll also consider subscribing to Premium Data ifyou wantreliable end-of-day data.

    I do not intend to ever commercialise this plugin - I'm happy for anybody and everybody to use it for free.

    ATR MULTIPLES

    By using logical values for the ATR multiples, you can define your trading style. For short-term trading, a trailing profit stop of 2 - 2.5 ATRs is useful.For medium-long term trading, a trailing profit stop of 3-4 ATRs is useful.

    TRADE STAGES

    The Advanced Stop system also allows you to plot a binary indicator that will indicate which "stage" of the trade you're on (very useful if you want tocreate an expert advisor).

    The stages are:0 - Not in a trade1 - In trade, current stop being used is initial stop, trade is still underneath transition point to breakeven stop.

    2 - In trade, trailing profit stop used3 - In trade, price is past first pyramid point4 - In trade, price is past second pyramid point-1 - Trade stopped out on initial stop-2 - Trade stopped out on trailing profit stop (or breakeven stop if this is being used)-3 - Trade stopped out on first pyramid trailing profit stop-4 - Trade stopped out on second pyramid trailing profit stop.

    This trade stage system is also fantastic if you are developing trading systems with very specific defined entry points.

    Check out the StageLong and StageShort functions.

    EXAMPLES

    The following examples are produced from Metastock v8, using stock and futures data from Premium Data.

    Chart below shows standard trailing profit stop:

    http://-/?-http://-/?-http://-/?-http://traderclub.com/discus/messages/107/477.html?FridayDecember319991048pmhttp://-/?-http://-/?-http://www.traderclub.com/http://-/?-http://-/?-http://www.premiumdata.net/http://www.premiumdata.net/http://-/?-http://-/?-http://-/?-
  • 7/26/2019 Trader Nexus_ Advanced Trailing Stop Metastock Stop Loss Plugin

    2/6

    8/3/2015 Tr ader Nexus: Advanced Tr ai li ng Stop M etastock Stop Loss Pl ugi n

    http://www.tradernexus.com/advancedstop/advancedstop.html 2/6

    Chart below shows trailing profit stop on same stock but with a different trailing profit stop ATR multiple.

    This chart shows the trailing profit stop on a short trade.

  • 7/26/2019 Trader Nexus_ Advanced Trailing Stop Metastock Stop Loss Plugin

    3/6

    8/3/2015 Tr ader Nexus: Advanced Tr ai li ng Stop M etastock Stop Loss Pl ugi n

    http://www.tradernexus.com/advancedstop/advancedstop.html 3/6

    The chart below shows Crude Oil:

    This chart shows Cisco on a long trade using the more advanced Pyramid tightening stops.Note: I manually drew in the points marked 1, 2, 3 & 4, to show the pyramid points a little better for you.

  • 7/26/2019 Trader Nexus_ Advanced Trailing Stop Metastock Stop Loss Plugin

    4/6

    8/3/2015 Tr ader Nexus: Advanced Tr ai li ng Stop M etastock Stop Loss Pl ugi n

    http://www.tradernexus.com/advancedstop/advancedstop.html 4/6

    USAGE

    After installation, a DLL fi le called AdvancedStop is stored in your equis\metastock\external f ormula dlls directory. The Advanced Stop DLL has fourfunctions that can be called:

    StopLong - the trailing profit stop on a long tradeStopShort - the trailing profit stop on a short tradeStageLong - the stage of the trade in a long tradeStageShort - the stage of the trade in a short trade

    All of the above functions take t he following parameters:Entry Condition - what causes an entry (eg. a particular date, moving average crossover etc.)

    Initial Stop at Entry - The stop point when you enter the tradeTransition to breakeven stop - The price at which you transition to a breakeven point (calculated on day of entry) - set this to 0 if you do not want touse a breakeven stop.Trailing Profit Stop - The value of the trailing profit stop, calculated on each day of the trade.First Pyramid Condition - The price at which you transition to the first pyramid condition (calculated on day of entry). Set this to 0 if you do not wantto use a pyramidTrailing Profit Stop at First Pyramid - The value of the trailing profit stop, calculated on each day of the trade, after the first pyramid point has beensignalled. Set to 0 if you do not want to use this.Second Pyramid Condition - The price at which you transition to the first pyramid condition (calculated on day of entry). Set this to 0 if you do notwant to use a pyramidTrailing Profit Stop at Second Pyramid - The value of the trailing profit stop, calculated on each day of the trade, after the second pyramid point hasbeen signalled. Set to 0 if you do not want to use this.

    All of the above seems complex at first sight! Luckily I've provided a few formulas that help you to plot t he above on a chart.

    USAGE EXAMPLE - PLOT A TRAILING PROFIT STOP FROM A GIVEN DAY ONWARDS

    entryday:=Input("Day of month",1,31,1)entrymonth:=Input("Month",1,12,1)entryyear:=Input("Year",1800,2020,2003)entryprice:=Input("Entry Price (leave as zero for close of the day)",0,5000,0)entryprice2 := If(entryprice>0,entryprice,C)initatr:=Input("Initial stop ATR multiplier",0.1,6,2)trailatr:=Input("Trailing stop ATR multiplier from High",0.1,6,2.5)entryfulldate := (entryyear)+(entrymonth/12)+(entryday/365)fulldate := Year()+Month()/12+DayOfMonth()/365entry:= entryfulldate > Ref(fulldate,-1) AND entryfulldate

  • 7/26/2019 Trader Nexus_ Advanced Trailing Stop Metastock Stop Loss Plugin

    5/6

    8/3/2015 Tr ader Nexus: Advanced Tr ai li ng Stop M etastock Stop Loss Pl ugi n

    http://www.tradernexus.com/advancedstop/advancedstop.html 5/6

    So, all you do is enter in the date you entered the trade, the price you entered (or 0 for the closing price) and the two multipliers for the initial stop andtrailing stop. After this, the trailing stop will be plotted on your price chart just like the examples above.

    I have included a few more indicators that can be dragged onto the chart too - check out the code inside them for further details.

    Trick used above: You'll notice I have some code in there to calculate dates etc. I have used a little trick that allows the trailing profit stop line to still beplotted even if you put in an invalid date (eg. weekend). If I didn't use this, and an invalid date was given, you'd have an 'invisible' indicator which israther difficult to remove from your chart.

    FREQUENTLY ASKED QUESTIONS

    What trailing stop values/multipliers should I use for trading ?

    The beauty of the above DLL is that you can try out different multiples to suit your personal style of trading. Aggressive short-term traders will generallyuse low multiples and longer-term traders will use high multiples.

    What entry conditions should I use?

    Use the entry conditions contained within your written trading plan. This Metastock Plugin is used for exits not for entries!

    I used your trailing stop and it lost me money.

    Firstly: I'll happily refund the money you paid me for the Advanced Trailing Stop. Oh, that's right, you didn't pay anything.Secondly: Grow up. Take responsibility for your own trading decisions. Do not use something you don't fully understand. This is just a tool to assisttraders, not tell them what to do.Thirdly: You must not have read the disclaimer below and when you installed the plugin.

    Are any of the indicators password protected?

    None of indicators are password protected - you may edit and modify it to suit your trading style.

    I have a stop loss methodology that doesn't use ATRs. Can I use this DLL to assist me?

    Most certainly you can. The entire system is based on two types of conditions - (a) conditions relative to the entry price (initial stop & pyramid points)and (b) conditions relative to the current day's price (trailing stops). These do not need to be ATR based.

    Send your questions to: [email protected]

    KNOWN LIMITATIONS

    Doesn't plot in the first few bars of a chart. For new IPOs etc. you will need to wait until the ATR has valid values (eg. 10 day ATR requires 10 days ofchart information first).

    Perhaps not a limitation - Intraday price movements are ignored. Therefore if the close of the day doesn't go past your stop, it still considers that you

    are in the trade.

    FEEDBACK

    I'm interested in your feedback. Let me know what you think of this Metastock add-in at [email protected]

    DISCLAIMER

    In this day and age of litigation, everybody wants to blame someone else when things don't go to plan.

    Richard Dale nor any associate of his, is not permitted to provide personal securities recommendations. Therefore anything that is either spoken, shownor implied within this web site, any downloaded files, any links to other sites or communication related to this site will not be taken as an investmentrecommendations or advice.

    Before making an investment decision on the basis of any information received from this web site or subsequent communications with Richard Dale orhis associates, I will consider with or without the assistance of a licensed securities adviser, whether my application of the information is appropriate inlight of my particular investment needs, objectives and financial circumstances.

    I understand and agree that Richard Dale nor any associate of his, shall in no way be liable to myself or anyone else for any loss or injury caused inwhole or in part through any activity related to this web site.

    In short, I guarantee that you will lose money in the market. If you do not lose money in the market as a result of this web site or any tools that areprovided then give some of it to a charity.

    mailto:[email protected]:[email protected]
  • 7/26/2019 Trader Nexus_ Advanced Trailing Stop Metastock Stop Loss Plugin

    6/6

    8/3/2015 Tr ader Nexus: Advanced Tr ai li ng Stop M etastock Stop Loss Pl ugi n

    http://www.tradernexus.com/advancedstop/advancedstop.html 6/6

    DOWNLOADS

    Before you download, read the disclaimer above. You may only download the following files if you agree to the disclaimer.

    Now choose which version of Metastock you own:

    AdvancedTrailingStop v1.1 for Metastock v8.X or v9.X or v10.x (156K download)AdvancedTrailingStop v1.1 for Metastock v7.X (155K download)

    Note: I have been advised that AVG Antivirus 6.0.777 (Free Edition) with Virus Database 524 (Release date 14/10/2004) reports the above files ascontaining a "Trojan Horse PSW.Bancban.2.1". The above files do NOT contain any trojan horse/spyware/viruses. If you see this error message,disable AVG while you're installing the plugin and turn it back on again aftewards. Also, I recommend you contact Grisoft so they can fix their antivirusdefinitions.

    The above files will automatically install the AdvancedStop DLL into Metastock, along with the following Indicators:

    RAD*ChanderlierStopLongRAD*ChanderlierStopLongPyramidRAD*ChanderlierStopLongWithTransitionRAD*ChanderlierStopShortRAD*ChanderlierStopShortPyramidRAD*ChanderlierStopShortWithTransition

    MetaStock is a registered trademark of Equis International

    http://www.tradernexus.com/advancedstop/advancedstop.v1.1.ms7.exehttp://www.tradernexus.com/advancedstop/advancedstop.v1.1.ms8.exe