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 usazencort, Today, 01:16 AM
                        0 responses
                        1 view
                        0 likes
                        Last Post usazencort  
                        Started by kaywai, 09-01-2023, 08:44 PM
                        5 responses
                        603 views
                        0 likes
                        Last Post NinjaTrader_Jason  
                        Started by xiinteractive, 04-09-2024, 08:08 AM
                        6 responses
                        23 views
                        0 likes
                        Last Post xiinteractive  
                        Started by Pattontje, Yesterday, 02:10 PM
                        2 responses
                        22 views
                        0 likes
                        Last Post Pattontje  
                        Started by flybuzz, 04-21-2024, 04:07 PM
                        17 responses
                        230 views
                        0 likes
                        Last Post TradingLoss  
                        Working...
                        X