Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cancel sell stop

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

    Cancel sell stop

    It seems my code cancels my sell stop order as soon as it is set...what would cause this ?

    thanks,

    #2
    Hello nohedge,

    You may be violating one of the NinjaTrader Internal Order Handling rules listed from the link below:



    You can find more information as to why this stop is canceling by enabling the TraceOrders property in your Initialize() method:



    I'd suggest enabling trace orders and checking the error. If you're unsure how to interrupt the output, please paste this information to your next response and we can help you determine why this is occurring.
    MatthewNinjaTrader Product Management

    Comment


      #3
      trace on

      Sell Stop Order for CROX has been Submitted.
      Sell Stop Order for CROX has been Accepted.
      Sell Stop Order for CROX is Working.
      4/19/2011 9:47:00 AM Cancelled expired order: BarsInProgress=0: Order='NT-00002/Sim101' Name='Sell' State=Working Instrument='CROX' Action=Sell Limit price=0 Stop price=18.668 Quantity=188 Strategy='sampleAtm0' Type=Stop Tif=Gtc Oco='' Filled=0 Fill price=0 Token='4bfa6b28c4334f699b6203502085cd26' Gtd='12/1/2099 12:00:00 AM'
      Cancel sell stop for CROX has been Submitted
      Sell stop for CROX has been Cancelled.

      This is what I get...I added my own prints for debugging

      Comment


        #4
        Hello,

        By default NinjaTrader will cancel limit orders that are no longer true, however this can be changed.

        Please see our Reference Sample on Keeping Orders Alive for more information:

        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        117 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        166 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        85 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        130 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        88 views
        0 likes
        Last Post PaulMohn  
        Working...
        X