• 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

Adding master instruments programatically

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

    Adding master instruments programatically

    Hi,

    Is there a way to programatically add a master instrument? I can't use the "Import stock symbol list" menu as what I need to add a a whole bunch of instruments (1000+) of type index.

    Thanks,
    --kkg
    Last edited by kkgeorge; 10-03-2010, 05:31 AM. Reason: Modified title.

    #2
    Add() does that however 6.5 does not support multiple instruments 7.0 however does.

    Comment


      #3
      kkgeorge, unfortunately this is not possible.
      AustinNinjaTrader Customer Service

      Comment


        #4
        Thanks for the response. I solved the problem in a different manner.

        What I did was to create a file called Instruments.txt with the list of all of the instruments I needed to add in the format described in c:\Program Files\NinjaTrader 7\db/Instruments.txt. Then I copied this files to 'My Documents\NinjaTrader 7\db". Restarted NinjaTrader and all my instruments got added in the manner I needed it to.

        BTW in case folks are interested I was basically trying to use NinjaTrader with NSE stocks. The point to note is that if you add it as InstrumentType Stock, you will see that no data gets downloaded. Instead if we create all of the stocks with InstrumentType set to Index, data gets downloaded without any issues. Now I needed a way to bulk load all of the NSE stock symbols in and that is why I asked the question on how to modify the InstrumentType. Using the method I described in my previous para, I have not most of the symbols loaded and historical data is getting downloaded as I write this.

        Hopefully other folks will find this interesting.

        BTW in case any of the NinjaTrader developers are listening, the InstrumentManager interface(s) needs dramatic improvements. I in general like NinjaTrader but the InstrumentManager UI needs dramatic improvement.
        --kkg

        Comment


          #5
          Thanks kkgeorge you saved my day and night :-)

          Comment


            #6
            Hi I was wondering if there is a way to change the symbol mapping for a group of stocks (eg CBA-ASX in the way kkgeorge has updated his instrument list?

            Comment


              #7
              David, you could modify the instruments.txt file for the mappings as outlined by the earlier post, but we would not be able to offer support for those approaches unfortunately.
              BertrandNinjaTrader Customer Service

              Comment


                #8
                Thanks for your respone

                Comment


                  #9
                  Hi Bertrand
                  I know you said that you can't provide support for this approach but it's just not feasible for me to import 2500 ASX stocks one by one, since the esignal mapping has a "-" which the import utility won't accept.

                  Could you just confirm whether the symbol mapping is stored in the "instruments txt" file, as I can't find anything in there regards to symbol mapping or is it actually stored in the "NinjaTrader.sdf" file?

                  Thanks in Advance

                  Comment


                    #10
                    It's stored in the Instruments.txt file, please make a copy of it and open it up in your favorite text editor, then go to the second section named 'Instruments' - the formatting setup including the sequence of brokerage / technology mapping names is outlined then.
                    BertrandNinjaTrader Customer Service

                    Comment


                      #11
                      Hi Bertrand

                      I did look in the 2nd section "Instruments" however all it says in there about the mapping is
                      " ** external mappings are defaulted to TradeStation instruments"

                      I have been able to add the instruments by typing

                      WPLASX ; ; US Equities RTH ; 1 ; 0; ; 7; 1; 0.001; http://finance.yahoo.com/q?s=aa; Asx; 28; ,,-,,,,,,-,-,,-,-,-,-,,,,-,,,-,-; WPL-ASX

                      but the mapping and tick size does not change?

                      Also where can I find ( Cbi.CurrencyId) ?

                      Comment


                        #12
                        That's not correct, it explicitly lists the sequence of brokernames and where you would need to add eSignal mapping then (the map itself would need to be looked up of course in the eSignal symbol guide on their webpage). Once you have changed the file, you would need to reset instruments under Tools > Options > Data to 'sync' those changes in. After that step, please restart NT7.

                        As this is completely unsupported territory, the currency id is not documented - 7 would be the USD, 3 the Euro and 1 the GBP.
                        BertrandNinjaTrader Customer Service

                        Comment


                          #13
                          Sorry I didn't realize broker names meant that's where you put symbol mapping. That works great and it has saved me lots of time.

                          One last question, could you please tell me the Cbi.CurrencyId for Australian and Hong Kong Exchange Rates?

                          Comment


                            #14
                            Glad to hear that David:

                            AUD : 0
                            HKD : 4
                            BertrandNinjaTrader Customer Service

                            Comment


                              #15
                              Thanks again you were a big help

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by rickyblah12, Today, 06:19 PM
                              0 responses
                              3 views
                              0 likes
                              Last Post rickyblah12  
                              Started by ballboy11, Today, 05:22 PM
                              0 responses
                              3 views
                              0 likes
                              Last Post ballboy11  
                              Started by ballboy11, Today, 04:33 PM
                              2 responses
                              3 views
                              0 likes
                              Last Post ballboy11  
                              Started by dedouglas, Today, 03:16 PM
                              1 response
                              7 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by TradeMyth, Today, 02:45 PM
                              3 responses
                              24 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Working...
                              X