Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT Automation Issues - IB connection

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

    #16
    Thanks for the reply. Next, please uninstall / reinstall your .net installation.


    Please follow the instructions below to re-install the Microsoft .NET Framework on your PC.

    * Terminate any applications running on your PC
    * Go to the Windows Control Panel
    * "Add/Remove programs" for XP users or "Uninstall a program" for Vista users
    * Locate and uninstall the .NET Framework
    o If your highest version is 4.0 or greater than do not continue with these instructions and let us know and we will follow up with further instructions
    o If your highest version is 3.5 then proceed and uninstall this version and skip the next line
    o If your highest version is 2.0 then proceed and uninstall this version
    * Install version 3.5 of the .NET Framework which contains the 2.0 version which is required by NinjaTrader 6.5 (Download from here)
    * After the install please check for updates to the .Net Framework with the Windows Update function

    Note: Do not reboot your PC in between these steps as this can potentially create more issues that we are unfortunately not qualified to assist with.
    Ryan M.NinjaTrader Customer Service

    Comment


      #17
      I have Microsoft.NET Framework 4: 4.0.3031. It has 3 parts, Client Profile, Extended, and Multi-targeting pack.

      Comment


        #18
        Please follow the instructions below to repair Microsoft .NET Framework 4 on your PC.
        Download and run the .Net 4 installer from below. http://www.microsoft.com/downloads/e...displaylang=en

        Once ran you will receive two options if .Net 4 is installed.

        Select "Repair .Net Framework 4 to its original state"

        Click "Next" and follow other prompts

        Once the setup application is finished it may ask you to restart your computer, even if it does not please do so.

        Please retest your issue and see if it is resolved.
        Ryan M.NinjaTrader Customer Service

        Comment


          #19
          Ryan,
          I went to another computer, because I can't risk my main computer to experimentation. On this other computer I have WinXP SP3. I did not have .NET, TWS or NT installed. I installed all of them from scratch. First I installed NET 4, then NT 7.0.1000.4, then TWS 911.3. I opened a chart and added SimpleMACrossover, and started up the TWS connection. Same problem shows up. This is amazingly reproducible. In fact, I never dreamed it would behave the same way on a totally different machine, with a different OS version.

          Comment


            #20
            tradetree, I was just able to reproduce it here on my end and have asked development to take a look into matters.

            Thanks for your patience and support,

            Comment


              #21
              tradetree, this bug has been investigated and fixed by development and will be listed under # 4421 in the release notes for NT7 R5.

              Thanks for reporting it in so patiently,

              Comment


                #22
                Bertrand,
                That is great news. Thanks for working this through and following up! I'll let you know how my testing goes once I upgrade (but it may not be right away as I don't always take the latest versions).

                Originally posted by NinjaTrader_Bertrand View Post
                tradetree, this bug has been investigated and fixed by development and will be listed under # 4421 in the release notes for NT7 R5.

                Thanks for reporting it in so patiently,

                Comment


                  #23
                  Bertrand,
                  Do you know if this will have any effect on another issue I'm having with the IB connection? Today, when I right clicked on my positions in the positions tab and closed several of them, only the first one went away from the list. I then checked the executions tab and they were listed as having been closed there. I have seen this before in the past, but usually it is only after using the chart trader to close a position. It leaves me in the situation of not being able to confirm an exit. I can't check through the web because IB doesn't allow multiple connections. I can't disconnect from IB because I have other live orders.


                  Originally posted by tradetree View Post
                  Bertrand,
                  That is great news. Thanks for working this through and following up! I'll let you know how my testing goes once I upgrade (but it may not be right away as I don't always take the latest versions).

                  Comment


                    #24
                    Hi tradetree,

                    We're not familiar with this issue. Are you seeing it using 911 of TWS? How were the orders originally placed? We can check it against a simulated IB account if you can let us know a scenario we can use to see it.
                    Ryan M.NinjaTrader Customer Service

                    Comment


                      #25
                      The positions in question were all already in place when I started up NT and connected to IB. In other words, NT populated the positions tab with existing positions . Then I had submitted a partial sell order on each position via chart trader earlier in the day. Then I used the positions tab, right clicked on each position and selected "close." That is when only the first one left the positions tab and the others stayed as though they were not closed. Checking the executions tab confirmed they had been sold.

                      I also have a strategy running through IB for a futures contract. That bought and sold several times through the day and worked fine in the positions tab. The only anomaly there is that the strategies tab does not post "unrealized P&L". I am not so concerned about that as the positions tab always shows the correct unrealized P&L.




                      Originally posted by NinjaTrader_RyanM View Post
                      Hi tradetree,

                      We're not familiar with this issue. Are you seeing it using 911 of TWS? How were the orders originally placed? We can check it against a simulated IB account if you can let us know a scenario we can use to see it.

                      Comment


                        #26
                        Thanks. Just started setting this up but by the time I hit Right Click > Close, markets were closed for the weekend. I will look into this again on Monday.
                        Ryan M.NinjaTrader Customer Service

                        Comment


                          #27
                          Good luck with that test on Monday, but I'm not too hopeful you will reproduce it. I don't know how to reproduce it myself, it just happens sometimes. One thing I know is that it is with an IB connection, and not with simulated positions but real positions. I also have a muti-broker license and have never seen any problem like this with the Vision Financial positions. It is always the IB positions. Other than that I'm not sure what will trigger it, and I'm not going to trade just to try and reproduce a problem, so I've been living with it.

                          Originally posted by NinjaTrader_RyanM View Post
                          Thanks. Just started setting this up but by the time I hit Right Click > Close, markets were closed for the weekend. I will look into this again on Monday.

                          Comment


                            #28
                            Thanks. Not reproducible yet, but will continue to look into it. If you notice any other details that will help us isolate a scenario, please let us know.

                            I did notice one area for improvement here is that there is currently no notification when global sim mode is on and you attempt to Right Click > Close an open, external position. We have added this to our feature tracking system with ID #856.
                            Ryan M.NinjaTrader Customer Service

                            Comment


                              #29
                              I had the problem again today. My strategy had entered long on "TF-0611" futures. Then I went to another position for another instrument (UGL stock) in the positions tab, right clicked and selected "close". That first position (UGL) then went away from the positions tab. I repeated this for several positions in several accounts, and each time the subsequent positions remained listed in the positions tab. Then my strategy sold the "TF-0611" position, but it also remained in the positions tab. Later I forgot about the bug, so when I saw an open "TF-0611" position I was concerned and right clicked and selected "close". NT then entered a "sell" order, but because I didn't actually have an open "TF" order, it went short 1 contract! I had to call my broker and exit the position because I couldn't trust what NT was doing.

                              To my mind these are two distinct bugs. The first is less serious than the second. Not displaying properly is one thing, but if you select "close" it shouldn't "open" a new position. I presume it does this because it thinks there are no positions, so "close" put in on a "long" stale historical value is viewed as a "sell".

                              Originally posted by NinjaTrader_RyanM View Post
                              Thanks. Not reproducible yet, but will continue to look into it. If you notice any other details that will help us isolate a scenario, please let us know.

                              I did notice one area for improvement here is that there is currently no notification when global sim mode is on and you attempt to Right Click > Close an open, external position. We have added this to our feature tracking system with ID #856.

                              Comment


                                #30
                                Thanks for the update. We can review your log / trace files to see what NinjaTrader reported during this sequence. The positions tab should be populated by instrument updates that are logged in these files.

                                Please send to support 'at' ninjatrader 'dot' com the 20110412 files and indicate time stamps for:
                                Opening Strategy Order
                                Closing Strategy Order
                                Right Click > Close Position Order
                                Ryan M.NinjaTrader Customer Service

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by argusthome, 03-08-2026, 10:06 AM
                                0 responses
                                72 views
                                0 likes
                                Last Post argusthome  
                                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                                0 responses
                                43 views
                                0 likes
                                Last Post NabilKhattabi  
                                Started by Deep42, 03-06-2026, 12:28 AM
                                0 responses
                                25 views
                                0 likes
                                Last Post Deep42
                                by Deep42
                                 
                                Started by TheRealMorford, 03-05-2026, 06:15 PM
                                0 responses
                                28 views
                                0 likes
                                Last Post TheRealMorford  
                                Started by Mindset, 02-28-2026, 06:16 AM
                                0 responses
                                59 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Working...
                                X