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 samir, Today, 07:00 PM
        0 responses
        9 views
        0 likes
        Last Post samir
        by samir
         
        Started by travisloneker, Today, 06:52 PM
        0 responses
        6 views
        0 likes
        Last Post travisloneker  
        Started by InfraredBusa, Today, 05:50 PM
        0 responses
        3 views
        0 likes
        Last Post InfraredBusa  
        Started by White Fork, Today, 04:56 PM
        1 response
        8 views
        0 likes
        Last Post White Fork  
        Started by steveyinyang, Today, 02:48 PM
        3 responses
        22 views
        0 likes
        Last Post steveyinyang  
        Working...
        X