Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATR -Trailing Stops

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

    ATR -Trailing Stops

    Attach is a ATR Trailing Stop Indicator Based in the Wilder’s Volatility System.
    Attached Files

    #2
    Thanks PrTester for the indicator. Can you please tell how you use it to trade.

    I read about Wilder's volatility but do not understand it totally. Can you point me to any link/resource where I can get some good information on it.

    How do you use the other bottom indicators marked on your chart, in combination with the Wilders ?

    Thanks
    RK


    PS: Sorry if I am asking any obvious/basic questions.

    Comment


      #3
      Nice work !

      Originally posted by PrTester View Post
      Attach is a ATR Trailing Stop Indicator Based in the Wilder’s Volatility System.

      Comment


        #4
        Originally posted by RK_trader View Post
        Thanks PrTester for the indicator. Can you please tell how you use it to trade.

        I read about Wilder's volatility but do not understand it totally. Can you point me to any link/resource where I can get some good information on it.

        How do you use the other bottom indicators marked on your chart, in combination with the Wilders ?

        Thanks
        RK


        PS: Sorry if I am asking any obvious/basic questions.


        RK_trader,

        This indicator would help you to "let your profit run" if your trade is correct you can place your stop order in the ATR Trailing value, it use the(ATR) indicator based in the Wilder's volatility. you can change, the parameters - ATR period (Default = 14) and Times to multiply the ATR (Wilders's)(Default = 3 Times),

        Regards

        "
        Interpretation

        Wilder’s Volatility System determines market volatility by calculating a smoothed average of the market price’s true range. True Range, developed by Welles Wilder to deliver a more realistic method to calculate price activity, is an indicator that measures price activity and directional movement and is defined as the distance a price moves per increment of time, e.g. from the lowest price to the highest price in a day. This system measures the trend in volatility in the base instrument, according to the True Range concept. A rising trend line shows a volatility increase in the security. A falling trend line shows a reduction in the instrument’s volatility. The ordinate values are not relevant.

        Wilder’s Volatility System alone cannot trigger any trade signals, which means it must be used in conjunction with other indicator systems. A popular use is, for example, the Volatility Breakout System. Average True Range (ATR) represents the foundation for this. The aim of this system is to open a long position, as soon as the base instrument rises above its usual fluctuation margin and a short position as soon as it falls below its usual fluctuation margin.

        The Volatility assists the trader in determining the market’s risk potential, as well as buy and sell opportunities. More volatile markets offer a greater risk/reward potential. There are traders who readily take on the risk for the potential of a greater profit, while, at the same time, there are traders who do not want to take such a risk.

        "

        Comment


          #5
          Thanks PRTester for the information. I appreciate it.

          Once you are in a trade, in Ninja can one make this as a "trailing stop strategy", so that in the superdom it automatically trails the stop based on this trailing stop strategy. How can I do this?

          Thanks
          RK

          Comment


            #6
            ATR Stop

            I have the same question: How do you create an automated strategy that uses a trailing stop base on the ATR? It could be 1ATR or 0.5ATR, whatever it is, what is the procedure to use it?

            I have tried to insert it in the code as user variable but it did not work. Please help

            Another question: if you want to use an automated strategy only in real time how do you write the code so that only one open order is sent on the last bart (the active bar of the day in the daily chart) and not in all the other bars?

            Thanks

            Comment


              #7
              Originally posted by luitom View Post
              I have the same question: How do you create an automated strategy that uses a trailing stop base on the ATR? It could be 1ATR or 0.5ATR, whatever it is, what is the procedure to use it?

              I have tried to insert it in the code as user variable but it did not work. Please help

              Another question: if you want to use an automated strategy only in real time how do you write the code so that only one open order is sent on the last bart (the active bar of the day in the daily chart) and not in all the other bars?

              Thanks
              This would help you http://www.ninjatrader-support.com/v...ead.php?t=3222

              Hope it help,
              Regards

              Comment


                #8
                Once you find your entry condition and enter the trade in a NinjaScript Strategy the use of SetTrailStop() will do handle the rest.

                In addition to the reference sample please also take note of the documentation on the use of SetTrailStop() here: http://www.ninjatrader-support.com/H...TrailStop.html

                To make your order real-time only please use this code snippet at the beginning of the OnBarUpdate() method:
                Code:
                if (Historical)
                     return;
                http://www.ninjatrader-support.com/H...istorical.html
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  traling stop code

                  Thanks for your inputs. As I have said I tried to use a variable for the trailing stop but it does not seem to work. I cannot figure out what is wrong below

                  protected override void Initialize()
                  {
                  Variable1 = ((ATR(14)[1] * 0.25) * 100);
                  SetTrailStop("", CalculationMode.Ticks, Variable1, false);

                  CalculateOnBarClose = true;
                  }

                  /// <summary>
                  /// Called on each bar update event (incoming tick)
                  /// </summary>
                  protected override void OnBarUpdate()
                  {
                  // Condition set 1
                  if (Open[0] < Close[1])
                  {

                  EnterLongStopLimit(DefaultQuantity, Close[1]+ (ATR(14)[1]* 0.125), Close[1], "");

                  Comment


                    #10
                    When you want to set dynamic trail stops like what you are doing you cannot do it in the Initialize() method. That method is only executed once at the very beginning when you load the indicator and it does not know bar indexing so you cannot refer to indicators from there.

                    You will need to move your logic into the OnBarUpdate() method. If you don't want it constantly reupdating your SetTrailStop() use a bool variable to only allow it to set itself once and never again.
                    Code:
                    if (definedTrailStop == false)
                    {
                         Variable1 = ((ATR(14)[1] * 0.25) * 100);
                         SetTrailStop("", CalculationMode.Ticks, Variable1, false);
                         definedTrailStop = true;
                    }
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      Thanks PrTester, its appreciated. Very useful indicator.

                      Comment


                        #12
                        Hi PrTester or Luitom,

                        Did you have success using it in a superdom atm strategy, so that the stop automatically trails using this strategy in realtime.

                        Anyone else tried using this in atm strategy?I appreciate your comments.

                        Thanks
                        RK

                        Comment


                          #13
                          RK_trader,


                          I don't try it in an ATM strategy, but I have sucess in an automatic ninjascript strategy, This would help you http://www.ninjatrader-support.com/v...ead.php?t=3222

                          Best Regards

                          Comment


                            #14
                            Thanks PrTester.

                            The link you provided is going out of Ninja. Were you trying to point to this link:



                            Thanks
                            RK

                            Comment


                              #15
                              Originally posted by RK_trader View Post
                              Thanks PrTester.

                              The link you provided is going out of Ninja. Were you trying to point to this link:



                              Thanks
                              RK
                              Yes, Sorry

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Tim-c, Today, 02:10 PM
                              1 response
                              7 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
                              50 views
                              0 likes
                              Last Post chbruno
                              by chbruno
                               
                              Started by TraderG23, 12-08-2023, 07:56 AM
                              10 responses
                              399 views
                              1 like
                              Last Post beobast
                              by beobast
                               
                              Started by lorem, Yesterday, 09:18 AM
                              5 responses
                              25 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Working...
                              X