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 CarlTrading, 03-31-2026, 09:41 PM
              1 response
              77 views
              1 like
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 04-01-2026, 02:41 AM
              0 responses
              40 views
              0 likes
              Last Post CarlTrading  
              Started by CaptainJack, 03-31-2026, 11:44 PM
              0 responses
              63 views
              2 likes
              Last Post CaptainJack  
              Started by CarlTrading, 03-30-2026, 11:51 AM
              0 responses
              63 views
              0 likes
              Last Post CarlTrading  
              Started by CarlTrading, 03-30-2026, 11:48 AM
              0 responses
              53 views
              0 likes
              Last Post CarlTrading  
              Working...
              X