Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Average True Range Trailing Stop indicator needed.

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

    Average True Range Trailing Stop indicator needed.

    Could someone convert the ATR Trailing Stop indicator from NT 6.5 to NT 7.0? Please see attached file for 6.5 version. Thanks for the help.
    Attached Files

    #2
    Please give the one attached a try, works well here for me.
    Attached Files
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hello!

      I've been trying your excellent Trailing stop indicator.
      I have, however, encountered a problem.

      In my strategy, I want a trailing stop that always is below the close price.
      And the trailing stop in the indicator is sometimes above the price curve, this gives me some strange stop-exits.

      Is there a way to do this in the strategy wizard, or do I have to code in the difference between the close and trailing stop and subtract that from the close price every day?

      I am kind of new to Ninja Trader, so forgive me if this is a stupid question.

      Comment


        #4
        bebjo, if you're trying to find a difference in prices, you will need to move to actual code. The strategy wizard is not able to work with data like that. If you would like additional assistance with the actual indicator itself, you will have to contact the author of it.
        AustinNinjaTrader Customer Service

        Comment


          #5
          Thanks Austin,

          I will edit the code. Just wanted to do as much as I could in the wizard.

          Comment


            #6
            Originally posted by bebjo View Post
            In my strategy, I want a trailing stop that always is below the close price.
            And the trailing stop in the indicator is sometimes above the price curve, this gives me some strange stop-exits.
            The way that an ATR Trailing stop works is that, based on the settings, the line will be sometimes be above and sometimes below price. It's a bit like a bias indicator in that way.

            If you find it gets "flipped" sometimes when you don't want it to, it's a matter of tweaking the indicator parameters to better fit your symbol/interval.

            Daniel
            neoHarmonics.com

            Comment


              #7
              GM Bertrand,
              is there a way to change the color of the ATR signal when they are above price bar compared to below price bar?

              Comment


                #8
                Hello,

                Yes, you would need to change color of the DrawArrows inside the script.
                This is the last property in the DrawArrow method
                Cal H.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by PhillT, Today, 02:16 PM
                1 response
                2 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by Kaledus, Today, 01:29 PM
                3 responses
                9 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by frankthearm, Yesterday, 09:08 AM
                14 responses
                47 views
                0 likes
                Last Post NinjaTrader_Clayton  
                Started by gentlebenthebear, Today, 01:30 AM
                2 responses
                13 views
                0 likes
                Last Post gentlebenthebear  
                Started by PaulMohn, Today, 12:36 PM
                2 responses
                17 views
                0 likes
                Last Post PaulMohn  
                Working...
                X