• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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?
    Paul H.NinjaTrader Customer Service

    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
        Paul H.NinjaTrader Customer Service

        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.
            Paul H.NinjaTrader Customer Service

            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?
                  Paul H.NinjaTrader Customer Service

                  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
                      Paul H.NinjaTrader Customer Service

                      Comment


                        #26
                        Thank you Paul!

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by StevenNelson, Today, 12:23 PM
                        1 response
                        7 views
                        0 likes
                        Last Post NinjaTrader_PatrickG  
                        Started by kokobeef, Today, 12:32 PM
                        2 responses
                        9 views
                        0 likes
                        Last Post kokobeef  
                        Started by Jackrpo, Today, 11:14 AM
                        2 responses
                        9 views
                        0 likes
                        Last Post Jackrpo
                        by Jackrpo
                         
                        Started by DariusDeck, Yesterday, 04:22 PM
                        7 responses
                        49 views
                        0 likes
                        Last Post NinjaTrader_ChristopherJ  
                        Started by laszlonagy, Today, 09:28 AM
                        2 responses
                        10 views
                        0 likes
                        Last Post laszlonagy  
                        Working...
                        X