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 kaywai, Today, 06:26 AM
        1 response
        3 views
        0 likes
        Last Post kaywai
        by kaywai
         
        Started by ct, 05-07-2023, 12:31 PM
        6 responses
        202 views
        0 likes
        Last Post wisconsinpat  
        Started by kevinenergy, 02-17-2023, 12:42 PM
        118 responses
        2,779 views
        1 like
        Last Post kevinenergy  
        Started by briansaul, Today, 05:31 AM
        0 responses
        9 views
        0 likes
        Last Post briansaul  
        Started by traderqz, Yesterday, 12:06 AM
        11 responses
        28 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X