Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trailing Stop - Tight early then loose later

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

    Trailing Stop - Tight early then loose later

    The Auto Trail help states it's designed to allow a "more liberal stop Loss at the early stage of your trade..."; however, I want the reverse (tight at the beginning, the loser as the trade grows). My understanding is that it is not possible to do this with the GUI. Is it possible to do this via Script Builder?

    Would you recommend starting with the "TrailBuilder Example", per the links below, or perhaps something else?

    Similar Idea: https://forum.ninjatrader.com/forum/...der#post806596
    TrailBuilder Example: https://forum.ninjatrader.com/filedata/fetch?id=1113004

    Auto Trail Help: https://ninjatrader.com/support/help...p_strategy.htm

    Thanks!

    #2
    Hello uaruss,

    Welcome to the forum.

    TrailBuilderExample is a really good place to start. You could definitely come up with your own custom logic for your trailing behavior in the Strategy Builder.

    However, please note that the Builder is meant for simple logic so if you're looking to do complicated math or very complex logic it may not be feasible in the Strategy Builder.

    If you have a specific example of the logic you are trying to achieve we can assist with how to create the condition in the SB.

    Please let us know if you have any further questions.

    Comment


      #3
      Gaby -

      Awesome, thank you! Here's what I'm looking to do:
      1. Manually enter (let's say long)
      2. Initial Stop loss set at -20 ticks; Profit target set at 120 ticks
      3. When position is +20 ticks, move fixed stop loss to breakeven + 1 tick
      4. When position is +40 ticks, move fixed stop loss to -25 ticks
      5. When position is > +60 ticks, trailing stop loss at -40 ticks
      Basically, I'm trying to catch a move. If I'm wrong, I want to get out fast. If I'm right and it starts to move in my direction, I want to give it more space and trail.

      Any suggestions / ideas are highly appreciated! Thank you!

      Comment


        #4
        Hello uaruss,

        Thank you for your response.

        I recommend studying the BreakEvenBuilder example which shows this type of logic. It demonstrates how to move the stop loss to breakeven after a certain amount of profit has been reached.



        As mentioned, TrailBuilder example is also demonstrating how to properly implement trailing logic in your strategy as well.

        If your profit target is going to be static (not moved), you can set that up in the Stops and Targets section of the Builder.

        Please let us know if you have any further questions.

        Comment


          #5
          Gaby - Can you confirm the "Buy Mkt" buttons (and others) cannot interact with the NT8 script? I ran across the link below that indicates that may be the case.



          It also referenced using a "button", but the link just went to the broader download page, so not sure what the thinking was there.

          Ultimately, I need to code the solution, since the ATM Strategy GUI isn't designed to do what I want it to do (fair enough). However, I still want the ability to manually enter the trade... and then have the script do the stop loss trailing.

          Thanks. Your help and this forum are gold!

          Comment


            #6
            Hello,

            That is correct, manually submitted trades, like those submitted from the Chart Trader buttons, cannot interact with a strategy.

            You could use the AddOn approach to create a script with your own set of custom buttons that can submit a trade and have those trades managed by the strategy script.

            We have an example script which demonstrates this concept here:



            However, this would not be possible using the Strategy Builder and would require manual coding.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            557 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            324 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            545 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            547 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X