Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

dollar profit target

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

    dollar profit target

    Hi,

    I am interested in using specific dollar targets for exiting trades. Is there a way to link the PnL with a exit strategy? For example, lets say I am short 5 ES and my PnL reaches $500.00. NT would then send a close position order. Is this possible?

    Thank you

    #2
    Yes this is possible, you would need to monitor Position.GetProfitLoss() and then send a market order to exit.
    RayNinjaTrader Customer Service

    Comment


      #3
      dollar profit target

      I would like to know how to do this too.
      Could code be shown please?

      Comment


        #4
        You could try something like:

        Code:
        if (Position.MarketPosition == MarketPosition.Long && Position.GetProfitLoss(Close[0], PerformanceUnit.Currency) > 500)
            ExitLong();
        RayNinjaTrader Customer Service

        Comment


          #5
          dollar profit target

          Thanks Ray,
          Looks good to me.
          Jim

          Comment


            #6
            dollar profit target

            Is there any way fpr this to be based on Realized P&L for a given time period, and not the Unrealized P&L?
            Thanks,
            Jim

            Comment


              #7
              Not currently. NT 6.5 will have some more features related to strategy performance.
              RayNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              651 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              370 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              109 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              574 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              577 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X