Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trailing Profit Programming

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

    Trailing Profit Programming

    Can somebody show me how to program an auto trailing profit target in a strategy? I would be thankful if it is also shown where exactly in the strategy that programming will be done.

    #2
    Hi coldsigh,

    Welcome to the NinjaTrader Support Forums.

    One of our NinjaScript technicians in training will respond later today. Thank you for your patience.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Hello,


      Basically you will want to do the opposite of a trail stop. This link shows how to do a trailing stop:
      http://www.ninjatrader-support.com/v...67&postcount=9

      I cannot help you with your custom code at this is beyond the level of support we provide. You are welcome to contact one of your 3rd party NinjaScript consultants here:
      DenNinjaTrader Customer Service

      Comment


        #4
        Moving Profit Target

        I went to the link you provided and was not sure how to implement this.

        What I am hearing is that we need to manually write a RaisingProfitTarget method of some kind which would employ the opposite of logic found in a trailing stop?

        From a visual perspective, it would be nice if there was a bracket (virtual), that could wrap around the current price and follow it up, moving both the trailing stop AND the profit target.

        If you can point to some sample code, that would be great.

        Originally posted by coldsigh View Post
        Can somebody show me how to program an auto trailing profit target in a strategy? I would be thankful if it is also shown where exactly in the strategy that programming will be done.

        Comment


          #5
          Hi r2kTrader,

          You are correct. You want to employ opposite logic to the trailing stop logic provided earlier. Unfortunately there is no complete sample code demonstrating this. All you need to do is take the trailing stop logic and add the opposite logic and then you will have what you wanted.
          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
          574 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          333 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
          553 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X