Announcement

Collapse
No announcement yet.

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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        89 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        135 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        119 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        69 views
        0 likes
        Last Post PaulMohn  
        Working...
        X