Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with SetProfitTarget

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

    Problem with SetProfitTarget

    I'm having an issue with SetProfitTarget where it cancels itself and the supporting stop order when I try to change the target price.

    I'm using TraceOrders = true; to see the order activity.

    As I acquire more contracts the Target and Stop orders are amended without a problem.

    As soon as I reach a target and I change the Target price the process fails. I've attached output to show the different behaviors.

    I've tried initializing the first SetProfitTarget and SetStopLoss both in OnStateChange and a routine the fires once in OnBarUpdate.

    Any insight in to solving this is appreciated.
    Attached Files
    daqu40
    NinjaTrader Ecosystem Vendor - QTradez

    #2
    Thank you for reporting this to us. Can you share a sample script which will reproduce this issue, so that I can test further on my end?
    Dave I.NinjaTrader Product Management

    Comment


      #3
      Sure can you remind me how to email it to you?
      daqu40
      NinjaTrader Ecosystem Vendor - QTradez

      Comment


        #4
        Hello daqu40,

        You will be able to email your script to platformsupport [AT] ninjatrader [DOT] com. Please ensure that a link to this thread is referenced in the body of your email.
        Zachary G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        143 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        296 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        241 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        339 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        172 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X