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 kawalecld, Today, 12:21 PM
        0 responses
        5 views
        0 likes
        Last Post kawalecld  
        Started by exjayess, Today, 11:04 AM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_ShawnB  
        Started by robertlaub, Today, 11:11 AM
        2 responses
        7 views
        0 likes
        Last Post robertlaub  
        Started by sdauteuil, Today, 10:28 AM
        0 responses
        6 views
        0 likes
        Last Post sdauteuil  
        Started by KirkHammett, Today, 08:11 AM
        0 responses
        7 views
        0 likes
        Last Post KirkHammett  
        Working...
        X