Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need help with an ATR trailing stop

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need help with an ATR trailing stop

    I've tried countless codes and read many forum posts, but still can't seem to get this relatively simple concept down. Any help is appreciated.

    In essence, I'm trying to be able to place a trailing stop, which would have a tick value of 3 times the ATR. Referencing the EUR/USD, if the current ATR(10) is 0.0008, then at the point of entering my position, I would have a trailing stop of 24 ticks. (0.0008 * 3 = 0.0024 or 24 ticks).

    Again, I've tried many things, including resetting a regular stop loss each time, etc... I just seem to be missing something.

    #2
    Hi Jeddy197, please take for example a look at the attached script. To check into would suggesting running on EURUSD 5 min. It will enter off yesterday's 1.3265 early morning upswing and take the current ATR value multiplied by 3 as a tick factor for a trail stop (comes out to a trail of 18 ticks for this move when rounded to integer). Hopefully this can provide a base for your further custom modifications.
    Attached Files
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Originally posted by Jeddy197 View Post
      I've tried countless codes and read many forum posts, but still can't seem to get this relatively simple concept down. Any help is appreciated.

      In essence, I'm trying to be able to place a trailing stop, which would have a tick value of 3 times the ATR. Referencing the EUR/USD, if the current ATR(10) is 0.0008, then at the point of entering my position, I would have a trailing stop of 24 ticks. (0.0008 * 3 = 0.0024 or 24 ticks).

      Again, I've tried many things, including resetting a regular stop loss each time, etc... I just seem to be missing something.
      What you look for is called the chandelier stop or chandelier exit and was already described by Charles LeBeau. Also see article by Sharon Yamanaka: Good Stop, Bad Stop: Chandelier Exits, Technical Analysis of Stocks and Commodities, V. 24:11 (November 2006)

      The indicator is available for NinjaTrader here:

      The best futures trading community on the planet: futures trading, market news, trading charts, trading platforms, trading strategies


      Options:

      (1) Average true range can be subtracted from highest high or highest close for long trades and added to lowest low or lowest close for short trades

      (2) Trend reversal is possible intra-bar or after a bar close

      (3) Trend can be displayed via paint bars or arrows.

      (4) The indicator has integrated sound alerts that alert you to a trend reversal.


      Similar indicators:

      Your wish would be to deduct 3 times the ATR(10) from the high point. You can also deduct 2.5 times the ATR(10) from the midpoint (Median in NinjaSpeak) and obtain a near-identical indicator. A generalization of that second indicator is obtained when replacing the midpoint with a moving average or a moving median. This will lead you to the SuperTrend U11 and SuperTrend M11, which are available here:

      The best futures trading community on the planet: futures trading, market news, trading charts, trading platforms, trading strategies

      The best futures trading community on the planet: futures trading, market news, trading charts, trading platforms, trading strategies


      The chart attached shows the Chandelier Stop with an ATR(10) and a multiplier of 3 (blue/red) and the SuperTrend with a SMA(1), ATR(10) and a multiplier of 2 (green/orange). Nota: ATR(10) = EMA(TR,19).
      Attached Files

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by GussJ, 03-04-2020, 03:11 PM
      15 responses
      3,271 views
      0 likes
      Last Post xiinteractive  
      Started by Tim-c, Today, 02:10 PM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Taddypole, Today, 02:47 PM
      0 responses
      2 views
      0 likes
      Last Post Taddypole  
      Started by chbruno, 04-24-2024, 04:10 PM
      4 responses
      51 views
      0 likes
      Last Post chbruno
      by chbruno
       
      Started by TraderG23, 12-08-2023, 07:56 AM
      10 responses
      403 views
      1 like
      Last Post beobast
      by beobast
       
      Working...
      X