Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Mr C

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

    #16
    Hello,

    Thanks for your post.

    Do you have your code segmented by BarsInProgress index? As each instrument calls OnbarUpdate() the references can change.

    What are your entries per direction and entry handling set to?

    Comment


      #17
      Yes I have the code segmented properly using the bars in progress index. As far as entry handling goes it's 1 entry per direction ; all entries; exit on close false; stop and target -per entry execution and sync - false

      Comment


        #18
        Hello ciro1963,

        Please change your entry handling to "UniqueEntries" and retest on live data on your sim101 account.
        Reference: https://ninjatrader.com/support/help...rdirection.htm

        Comment


          #19
          Multi Instrument Issues

          That makes a difference! But it looks like it's only buying #1. # 2 doesn't seem to buy using the same strategy. See pic.
          Attached Files

          Comment


            #20
            Hello,

            Thanks for your reply.

            If you are using the same entry names for the instruments then you may need to increase your entries per direction.

            If you are using unique names for each instrument then I suggest you debug your strategy with print statements to see what order is being placed and when.

            Comment


              #21
              I'm using different names for the purchase of each instrument. In any case thank you very much . I will debug.

              Comment


                #22
                Multi Instrument Strategies

                Hi Paul,

                I ran my multi instrument strategy today and it tried to buy a stock but wasn't successful. Take a look at the error log in the pic below. I'm not sure why it didn't buy. Also attached is a message from my output window. My print statement shows that the algorithm tried to buy EQIX. I can understand why the sell orders didn't work- I didn't own any of them to begin with.The strategy thinks i bought them some time ago. However I'm confused why the buy order didn't work. Something about API in read only mode. I'll look at the IB API settings. Can you let me know what I can try? thanks.

                Mr C
                Attached Files
                Last edited by ciro1963; 01-22-2018, 09:23 PM.

                Comment


                  #23
                  Hello ciro1963,

                  Thanks for your reply.

                  What specific version of NT7 are you using? (Look in Help>About)

                  What specific version of TWS are you using?

                  Comment


                    #24
                    Hi-thank you for your response

                    ninjatrader 64 bit 7.0.1000.37 ( live)
                    TWS build 963.3m

                    Comment


                      #25
                      Hello ciro1963,

                      Thanks for your reply.

                      According to the NT7 connection guide for interactive brokers, the supported version of TWS to use is 960.2g. Please download the supported version and install according to the connection guide directions. Here is a link to the connection guide: https://ninjatrader.com/ConnectionGu...nnection-Guide

                      Comment


                        #26
                        Thank you Paul!

                        Comment

                        Latest Posts

                        Collapse

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