Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

IB Short Stock Unavailability Disables Strategy

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

    IB Short Stock Unavailability Disables Strategy

    Hi,

    When running a strategy which places a short order on IB for which shares aren't available for shorting (if manually trading it says your order will be held while IB locates shares), I find that NT immediately disables the strategy.

    Is there a way to deal with this by putting something in the code to bypass this error. Such as if shares of A aren't available for shorting, rather than disabling the strategy, short B as a proxy instead?

    Thanks in advance.

    #2
    Hello wuilengh,
    You can set the Realtime error handling to TakeNoAction so that the strategy does not gets disabled.

    Please refer to our help guide to know more about it
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Thanks, is this problem definitely recognized by NT as an "OrderState.Rejected" though?

      // Rejection handling
      if (order.OrderState == OrderState.Rejected)
      {
      // Stop loss order was rejected !!!!
      // Do something about it here
      }

      Comment


        #4
        Hello wuilengh,
        Yes, the rejected order will be triggered in the OnOrderUpdate event.
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        144 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        71 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        79 views
        0 likes
        Last Post PaulMohn  
        Working...
        X