Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Connection NT to IB TWS

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

    Connection NT to IB TWS

    Hello, I have connected NT to IB TWS. That works fine. I can send in orders. IB has the possibility to use extended order attributes for the orders sent in by using the API. Now I want to preset one or two of those extended attributes (always the same value). Is there any possibility to accomplish that?

    #2
    Hello Renejm,
    Thanks for your note.

    To assist you further can you please further elaborate what do you mean by extended attributes. Are you referring to the order types etc.

    I look forward to assisting you further.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      There are several extended order attributes available to set for the IB API like OCA Group (Once cancell all), Order ref and Trail Stop Price for example.

      Comment


        #4
        Hello Renejm,
        NinjaTrader does supports OCO (one cancels other), trial stop orders.

        You can take advantage of the ATM strategy templates to use the advanced functionalities. Please refer to our help guide to know more about it.

        http://www.ninjatrader.com/support/h...gement_atm.htm
        http://www.ninjatrader.com/support/h...auto_trail.htm

        You can also access the features using automated strategies too (via NinjaScript coding).
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          Thnaks for the fast reply. I am using an automated strategy with NT coding. Is there somewhere a description of the syntax to be used for setting those extended attributes? So far I haven't found doeumentation for that to use those attributes for the connection to IB

          Comment


            #6
            Hello Renejm,
            If you are using the managed approach to submit the orders then the stop / targets are already OCO'ed it. For example if you enter a long position and placed a stop and target order (via the Set or the Exit methods) then the stop will automatically get cancelled if the target gets filled.

            On the other hand if you are submitting the orders via the Unmanaged approach then you have to specifically refer the OCO string while submitting the orders.
            SubmitOrder(int barsInProgressIndex, OrderAction orderAction, OrderType orderType, int quantity, double limitPrice, double stopPrice, string ocoId, string signalName)
            http://www.ninjatrader.com/support/h...ubmitorder.htm
            JoydeepNinjaTrader Customer Service

            Comment


              #7
              Thanks for the reply. Any possibilities for additional extended order attributes like the order ref field of IB?

              Comment


                #8
                Hello Renejm,
                Are you referring to the Order id etc. If so then I would suggest looking into the IOrder object from our help guide
                http://www.ninjatrader.com/support/h...tml?iorder.htm
                JoydeepNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Rubix, Today, 09:31 PM
                0 responses
                12 views
                0 likes
                Last Post Rubix
                by Rubix
                 
                Started by ark321, Today, 05:12 PM
                1 response
                19 views
                0 likes
                Last Post NinjaTrader_EricB  
                Started by futurenow, Today, 09:08 PM
                0 responses
                4 views
                0 likes
                Last Post futurenow  
                Started by ezrollin, Today, 08:51 PM
                0 responses
                11 views
                0 likes
                Last Post ezrollin  
                Started by fafafdenis, Today, 04:56 PM
                1 response
                5 views
                0 likes
                Last Post NinjaTrader_EricB  
                Working...
                X