Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

IB Error Msg '12'on Ninja Log

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

    IB Error Msg '12'on Ninja Log

    I keep getting the following error message on the Ninja Log when I use the DLL interface, apparently only when using mypaper IB trading account but not when I use my live IB trading account.

    Code:
    IB.Globals.MessageLoop msg='12': Specified argument was out of the range of valid values.
    Parameter name: Index was out of range. Must be non-negative and less than the size of the collection.
    
    IB.Globals.MessageLoop msg='12': Specified argument was out of the range of valid values.
    Parameter name: Index was out of range. Must be non-negative and less than the size of the collection.
    
    IB.Globals.MessageLoop msg='12': Specified argument was out of the range of valid values.
    Parameter name: Index was out of range. Must be non-negative and less than the size of the collection.
    Any thoughts as to what causes this or how to remedy?

    Regards,

    Whitmark
    whitmark
    NinjaTrader Ecosystem Vendor - Whitmark Development

    #2
    imported post

    Hi Whitmark,

    Can you reset your Simulator and then try again.

    Go to Tools--> Options--> Simulator tab--> Reset

    Vince
    Vince B.NinjaTrader Customer Service

    Comment


      #3
      imported post

      Hi Vince,

      Thanks for the quick response. Tried that again and no luck . . . any other suggestions?

      Regards,

      Whitmark
      whitmark
      NinjaTrader Ecosystem Vendor - Whitmark Development

      Comment


        #4
        imported post

        Hi Whitmark,

        This problem is related to the depth of market information being sent from the IB demo system. It appears that TWS is not sending correct depth position information to us which generates these errors. I am curious if this happens if you just use the SuperDOM?


        Ray
        RayNinjaTrader Customer Service

        Comment


          #5
          imported post

          It would appear to work fine on the SuperDom and does not seem to be a critical error per se on the ATI as I can tell yet. What next?

          Regards,

          Whitmark
          whitmark
          NinjaTrader Ecosystem Vendor - Whitmark Development

          Comment


            #6
            imported post

            To clarify:
            - as you have DOM open and no ATI running, all is fine
            - as you have DOM open an ATI running, problem is there
            - as you only have ATI running and no DOM, all is fine

            Curious: What do you trigger trhough ATI? A lot of activity which might load the CPU and cause TWS to get out of sync?

            Comment


              #7
              imported post

              I always have the DOM up whenI run theATIso I will need to test with the DOM closed. Also, the error seems appear when the DOM is up and regardless of whether the ATI is activated or not, but I will need to reconfirm this.

              Regarding what Iam pushing through theATI, its only end of bar processingof the Command function for PLACE, CANCELALLORDERS, CLOSEPOSITION, REVERSEPOSITION and a checkof the MarketPosition functionmake sure its flat under certain conditionsbefore I place a new order, so I suspect the load is light.

              Let me experiment tomorrow more to see if I can pin down the symptoms and report back.

              Regards,

              Whitmark
              whitmark
              NinjaTrader Ecosystem Vendor - Whitmark Development

              Comment


                #8
                imported post

                Great, also:

                - which instrument do you have on the DOM?
                - is that the same instrument you trade thru ATI?

                Comment


                  #9
                  imported post

                  When using the IBpaper trading account, the error message only occurswhen I have the dynamic DOM up (I am not subscribed to the static DOM) regardless of whether the ATI is activated. Please see attached. I am testing the IB 'ER2 12-06' symbolon the Both the ATI andDOM concurrently.

                  When a manual order isplaced on the DOM the error persists before the entry order is filled, after the entry order is filled, and after the trade is closed out. Likewise, when an ATI order is placed, the error appears before, during, and after a position is taken while the dynamicDOM is up. It doesn't appear the error impacts proper fill, targets, stops, etc from what I can tell.

                  Hope that helps. Let me know if you need additional testing to resolve this.

                  Regards,

                  Whitmark
                  Attached Files
                  whitmark
                  NinjaTrader Ecosystem Vendor - Whitmark Development

                  Comment


                    #10
                    imported post

                    I'm on a loss. Live account works fine. We don't have paper trade account access though. As stated below, likely an issue on TWS's end.

                    Comment


                      #11
                      imported post

                      Setting up a paper trading account is as easy as making a selection in the IB Account Manager . . . very easy to do and thepaper trading account'sfill model is as good, IMO, as the Sim101 sim account in Ninja. Check it out, its a free feature.

                      Regards,

                      Whitmark
                      whitmark
                      NinjaTrader Ecosystem Vendor - Whitmark Development

                      Comment


                        #12
                        imported post

                        I can acknowledge, that there is a problem with inconsistent L2 data coming from TWS paper trade account. However, this is out of our control.

                        I suggest using your IB live account and trade against Sim101.

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by nicthe, Today, 07:57 PM
                        0 responses
                        3 views
                        0 likes
                        Last Post nicthe
                        by nicthe
                         
                        Started by heiheilau2000, 06-11-2024, 08:32 AM
                        6 responses
                        26 views
                        0 likes
                        Last Post heiheilau2000  
                        Started by franjcy, Today, 01:23 PM
                        0 responses
                        9 views
                        0 likes
                        Last Post franjcy
                        by franjcy
                         
                        Started by tony_28217, Today, 12:55 PM
                        0 responses
                        7 views
                        0 likes
                        Last Post tony_28217  
                        Started by thumper57, Today, 12:12 PM
                        0 responses
                        16 views
                        0 likes
                        Last Post thumper57  
                        Working...
                        X