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

Mutiple entries not working in strategy develpment

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

    #31
    Hi ChelseaB,

    I really like your ATRTrailing indicator. I was wondering if there was a way to modify the script so the new indicator plot (change in long/short) would plot "only" if price "closed" above/below the plot. With the current script, a new plot populates if price "breaks" the ATRTrailing stop. I have been using ThinkorSwim for many years and this is how their ATR Trailing Stop indicator works. I have found on higher time frames, using the "close" above/below method does a better job and holding the overall trend.

    Thank you for your help.

    Comment


      #32
      Hello Matt_E,

      Welcome to the NinjaTrader forums!

      https://ninjatraderecosystem.com/use...d/atrtrailing/

      This is not my original work but a conversion from a NinjaTrader 7 script.

      You are welcome to make any modifications you would like.

      I recommend you first make a copy of the script with a new unique name.


      The Sideset series appears to hold the direction.

      The switching conditions appear to be
      Code:
      if (Sideset[1] == 1 && Low[1] > Plotset[1])
      Code:
      if (Sideset[1] == 0 && High[1] < Plotset[1])
      You might add or replace the comparison with Close[1] > Plotset[1].

      I am also including a link to a forum post with helpful information about getting started with NinjaScript.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #33
        Awesome! I will give that a shot. Thank you, ChelseaB, for the info!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by mgco4you, Today, 09:46 PM
        1 response
        2 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by wzgy0920, Today, 09:53 PM
        0 responses
        3 views
        0 likes
        Last Post wzgy0920  
        Started by Rapine Heihei, Today, 08:19 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by Rapine Heihei, Today, 08:25 PM
        0 responses
        6 views
        0 likes
        Last Post Rapine Heihei  
        Started by f.saeidi, Today, 08:01 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X