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 The_Sec, Yesterday, 03:37 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by vecnopus, Today, 06:15 AM
        0 responses
        1 view
        0 likes
        Last Post vecnopus  
        Started by Aviram Y, Today, 05:29 AM
        0 responses
        5 views
        0 likes
        Last Post Aviram Y  
        Started by quantismo, 04-17-2024, 05:13 PM
        3 responses
        27 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by ScottWalsh, 04-16-2024, 04:29 PM
        7 responses
        36 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X