![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Junior Member
Join Date: Jul 2010
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
|
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 at 05:31 AM.
Reason: Modified title.
|
|
|
|
|
|
#2 |
|
Senior Member
|
Add() does that however 6.5 does not support multiple instruments 7.0 however does.
|
|
|
|
|
|
#3 |
|
NinjaTrader Customer Service
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 90 times in 82 posts
|
kkgeorge, unfortunately this is not possible.
Austin
NinjaTrader Customer Service |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jul 2010
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jan 2010
Posts: 278
Thanks: 17
Thanked 4 times in 3 posts
|
Thanks kkgeorge you saved my day and night :-)
|
|
|
|
|
|
#6 |
|
Member
Join Date: Mar 2009
Posts: 38
Thanks: 0
Thanked 0 times in 0 posts
|
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?
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Changes does not show in "Available master instruments" view after editing | laurus12 | Version 7 Beta General Questions & Bug Reports | 8 | 08-01-2010 10:05 PM |
| Master Market Clock | tderrick | Miscellaneous Support | 2 | 03-11-2010 08:35 AM |
| Master Instrument Help Needed | Nillie | Charting | 2 | 10-28-2009 06:42 PM |
| Accidentally delete one Master Instruments | jimmyye | Miscellaneous Support | 1 | 08-20-2009 10:16 AM |
| Deleting a master instrument would delete all instruments in the instrument list. | clearpicks | Connecting | 11 | 05-13-2008 12:00 PM |