NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support

Miscellaneous Support Miscellaneous support issues.

Reply
 
Thread Tools Display Modes
Old 12-29-2010, 03:53 AM   #1
Birle
Junior Member
 
Join Date: Dec 2010
Location: São Paulo
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default Importing txt files

Hello.

This seems to be a simple question, but I got stuck for hours now, getting always the same message. " unable to import file....Instrument not supported by repository".

I'm attaching the txt file, which I couldn't generate in the correct format (how do I separate chacacters with semicolons?) The instrument I have already registered in the instrument manager, I hope that I did it correctly, just followed the guide.

Thanks for the help.
Birle is offline  
Reply With Quote
Old 12-29-2010, 04:04 AM   #2
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,223
Thanks: 83
Thanked 333 times in 325 posts
Default

Hello Birle,

You will need to make sure the data in the text file is formatted as per the link below under 'Understanding import file and data formats'.
http://www.ninjatrader.com/support/h.../importing.htm

If it does not use the same format, you will experience the error message you report. You will need to separate values by a semi colon. You can enter such characters by opening the text file in Notepad.
NinjaTrader_Jason is offline  
Reply With Quote
Old 12-29-2010, 07:38 AM   #3
Birle
Junior Member
 
Join Date: Dec 2010
Location: São Paulo
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default

Hi Jason.

Thank you. I think my txt file looks right now, but I still get the same message. Can't figure out what's wrong.

Regards

Roberto Birle
Attached Files
File Type: txt INDG11.txt (20.4 KB, 19 views)
Birle is offline  
Reply With Quote
Old 12-29-2010, 07:45 AM   #4
NinjaTrader_Kyle
NinjaTrader Customer Service
 
NinjaTrader_Kyle's Avatar
 
Join Date: Dec 2008
Location: Denver, CO, USA
Posts: 7,352
Thanks: 146
Thanked 253 times in 249 posts
Default

Hello Roberto,

Thank you for your note.

Based on what you uploaded, I think the file isn't named correctly.

Which instrument does this file contain data for?
Is this a futures contract? If so, which expiry of data is contained in the file?
Finally, what interval of data are you trying to import?
NinjaTrader_Kyle is offline  
Reply With Quote
Old 12-29-2010, 08:03 AM   #5
Birle
Junior Member
 
Join Date: Dec 2010
Location: São Paulo
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks Kyle.

This are daily data from ibovespa futures contract. It seems that the brazillian stocks and futures exchange is not listed, so I did the following:
1. Created an instrument list (BVMF)
2. Created a master instrument (INDG11). It seems that the file name is correct.
3. Type - Future. Tick size - 5 (I'll try to change it to 1). Point value - 0,2
4. Currency - Us Dollar (should be Brazillian Reais, not available).
5. Session Templates - default 24/7 . Exchange - BVME (I just chose one, because BVMF is not listed)
6. Symbol map - This I don't know what it means. I chose External by chance and wrot "ES" on the right column ??!!
7. Expiry - I keep writing 02-11, but it keeps coming back to 12-10.

Regards.
Birle is offline  
Reply With Quote
Old 12-29-2010, 08:16 AM   #6
Birle
Junior Member
 
Join Date: Dec 2010
Location: São Paulo
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default

I changed the tick size to 1 point, but it still didn't work.
Birle is offline  
Reply With Quote
Old 12-29-2010, 08:30 AM   #7
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,223
Thanks: 83
Thanked 333 times in 325 posts
Default

Hello Roberto,

When I check the file, I notice quotation marks at the start and end of each line. These quotation marks need to be removed and are in violation with the format displayed in the help guide.

Please note that NinjaTrader displays expiry months in numbers like, 03-11 - 06-11 and so on. The .txt file name needs to be the same as the instrument name + expiry within the software. For example:

MSFT.Last.txt for Microsoft stock last price data
ES 12-09.Bid.txt for the S&P E-mini December contract bid price data
$EURUSD.Ask.txt for the Euro/U.S. dollar currency pair ask price data

Please let me know if the issue persists after removing the quotation marks and naming the .txt file properly.
NinjaTrader_Jason is offline  
Reply With Quote
Old 12-30-2010, 04:43 AM   #8
Birle
Junior Member
 
Join Date: Dec 2010
Location: São Paulo
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks Jason.

It worked!!
Birle is offline  
Reply With Quote
Old 12-30-2010, 05:03 AM   #9
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,223
Thanks: 83
Thanked 333 times in 325 posts
Default

Good to hear it worked.

Have a great New Year!
NinjaTrader_Jason is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I create files (like *.TXT) ? bloshka Strategy Development 1 07-10-2010 09:51 AM
Exporting Instruments to Txt Files theGreek General Programming 3 12-03-2009 02:28 PM
Questions on importing TXT data smodato Charting 3 09-24-2009 07:38 AM
importing txt files, charts wrong r44chopper Charting 1 02-13-2008 09:05 AM
importing variables from .txt sandro Indicator Development 1 05-15-2007 06:59 AM


All times are GMT -6. The time now is 08:48 PM.