Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Price target and subsequent trailing stop. Letting them run.

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

    Price target and subsequent trailing stop. Letting them run.

    Hello all.

    I am trying to implement a price target and stop strategy.

    I want to set a profit target of X. once the price hits X I then want a trailing stop to be created of Y ticks, once the price is beyond X+Y.

    so basically I want to lock in a minimum profit of X ticks for good trades, but let them run.

    I have tried reading the manual and playing with order types but not sure how to do this.

    Any ideas?

    #2
    You are talking about a NinjaScript strategy or an ATM strategy e.g. on DOM?

    Comment


      #3
      Hi Dierk,

      This is in relation to an automated strategy.

      In the particular implementation I am working on I want the trailing stop of 2 ticks to activate once 6 ticks profit has been reached. effectively ensuring every trade that moves at least 6 ticks locks in at least 4 ticks.

      I find that the inbuilt trailing stop in Ninja is too restrictive, or I am using it incorrectly.

      Id appreciate your suggestions.

      Comment


        #4
        To clarify: this is an ATM strategy e.g. on DOM and not a NinjaScript strategy?

        Comment


          #5
          Sorry Dierk, its a ninjascript based strategy.

          Comment


            #6
            In NinjaScript you can do this by the methods of SetStopLoss(), SetProfitTarget(), and SetTrailStop() depending on which type of order you want to submit.

            You code in logic that will submit these various methods at the opportune time you want it. To check current PnL you can use GetProfitLoss(). Hope that gives you enough information to proceed.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            596 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            343 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            556 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            554 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X