NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support > Historical Version 7 Beta Threads > Version 7 Beta General Questions & Bug Reports

Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports.

 
 
Thread Tools Display Modes
Old 04-27-2010, 02:25 PM   #1
grahamwillsher
Member
 
Join Date: Aug 2009
Location: Kent, England
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
Default Using Ninjascript to import data

Hi,

In some pre relase documentation there was the following statement:

' Import routines are now implemented as NinjaScript objects thus, developers can develop their own custom data import routines'

I have looked through the online help files but can't find anything that looks as if it is going to do this.

Please could you let me know where I need to look to find this.

TIA,

Graham.
grahamwillsher is offline  
Old 04-27-2010, 02:39 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Graham,

This is currently not documented. What it means though is that you can use the import tool to bring in things like workspaces, templates, etc. To do so all you need to do is open up your zip file from an export and add in a workspace folder or a templates folder containing the files you wish the import to install as well.
NinjaTrader_Josh is offline  
Old 04-28-2010, 02:55 PM   #3
grahamwillsher
Member
 
Join Date: Aug 2009
Location: Kent, England
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
Default

Josh,

Thanks for the reply.

I was wondering if there was a way to write data import routines, rather than importing templates, specifically importing data directly from Metastock (since I can access the metastock database directly), and metastock is now a 'supported' import.

Regards,

Graham.
grahamwillsher is offline  
Old 04-28-2010, 03:00 PM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Graham,

Unfortunately we do not support writing import routines, but to use MetaStock data for import all you have to do is go to Tools>Historical Data Manager>Import tab and select MetaStock as your input data format.
NinjaTrader_Josh is offline  
Old 04-28-2010, 03:24 PM   #5
grahamwillsher
Member
 
Join Date: Aug 2009
Location: Kent, England
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
Default

Josh,

Sorry about that, I had looked at the online help and it seemed as if the files had to be in .txt format.

I have just started playing around with the importer and it seems to be doing what it is supposed to.

I'll let you know how I get on.

Regards,

Graham.
grahamwillsher is offline  
Old 04-30-2010, 02:38 PM   #6
grahamwillsher
Member
 
Join Date: Aug 2009
Location: Kent, England
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
Default

Josh,

I have now had a bit more chance to play with the importing of Metastock data, and have the following comments.

It has taken about 15 minutes to import some of my files (I can send you copies of these if necessary so that you can replicate)

Also I sometimes get the following error message, and am not sure what it really means.

30/04/2010 21:13:58 Default Unable to import data for MetaStock symbol 'LCP_u.TO': Instrument is not supported by repository.

The reason that I use the metastock data importer is because I have a lot of data supplied by Reuters in the Metastock format, do you know if there is an easy way to update this data within NT7 on a daily basis, rather than having to import all the data on a daily basis?

Thanks for your help with this matter.

Regards,

Graham.
grahamwillsher is offline  
Old 04-30-2010, 02:46 PM   #7
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Graham,

When importing MetaStock data it needs to do many conversions and recreations of files and such so it can take some time.

Can you please provide your file for LCP_u.TO?

Unfortunately there is no way to bring the data into NT without importing it.
NinjaTrader_Josh is offline  
Old 04-30-2010, 02:56 PM   #8
grahamwillsher
Member
 
Join Date: Aug 2009
Location: Kent, England
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
Default

Josh,

That error was one of many, do you want the log file that goes with that?

Do you want a copy of all the files or just the one file?

Graham.
grahamwillsher is offline  
Old 04-30-2010, 03:00 PM   #9
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Graham,

If you can reproduce with just one file then that single file would suffice. Thank you.
NinjaTrader_Josh is offline  
Old 04-30-2010, 03:09 PM   #10
grahamwillsher
Member
 
Join Date: Aug 2009
Location: Kent, England
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
Default

Josh,

File attached, it should be a .dat file not .doc, but had to change it to get it to upload it.

After all is said and done the importing of Metastock data is really only meant to be used for a one time import, and there isn't a way to be able to import Reuters data into NT?

This is a shame as Reuters offer a fantastic coverage of markets at reasonable prices.

Graham.
Attached Files
File Type: doc Copy of F1.Doc (1.4 KB, 4 views)
grahamwillsher is offline  
Old 04-30-2010, 03:19 PM   #11
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Graham,

Do you have the MASTER file as well? Unfortunately the format supported is MetaStock.
NinjaTrader_Josh is offline  
Old 04-30-2010, 03:26 PM   #12
grahamwillsher
Member
 
Join Date: Aug 2009
Location: Kent, England
Posts: 57
Thanks: 0
Thanked 0 times in 0 posts
Default

Josh,

Copies of Master and emaster files. You will need to remove the .doc extensions.

Graham.
Attached Files
File Type: doc Copy of EMASTER.doc (384 Bytes, 3 views)
File Type: doc Copy of MASTER.doc (106 Bytes, 3 views)
grahamwillsher is offline  
Old 04-30-2010, 03:50 PM   #13
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,499
Thanks: 109
Thanked 291 times in 280 posts
Default

Just tested this and recieved the same error on my side. Passing these files to development to see what the next step will be.

Thank you for your patience.
NinjaTrader_Brett is offline  
Old 05-03-2010, 04:05 AM   #14
NinjaTrader_Christian
NinjaTrader Development
 
NinjaTrader_Christian's Avatar
 
Join Date: Feb 2007
Location: Bamberg, , Germany
Posts: 279
Thanks: 0
Thanked 2 times in 2 posts
Default

Hi grahamwillsher !

In order to import MetaStock data, NinjaTrader needs to have an instrument for that data. The on the fly creation of a instrument with name 'LCP_u.TO' is not supported.

If you create an instrument, e.g.:
- File -> New -> Utilities -> Import Stock Symbol List
- type 'LCP_u.TO' and press return
- repeat import
--> import will work

Kind regards,
Christian
NinjaTrader_Christian is offline  
 

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
Import/Export ninjaScript MrBaffalo Miscellaneous Support 7 10-18-2010 07:19 AM
can't import NinjaScript kumaresh11 Installation and Licensing 1 10-30-2009 06:48 AM
NinjaScript Import Error MiniDowTrader General Programming 4 02-13-2008 11:13 AM
NinjaScript Import Error TAJTrades Miscellaneous Support 4 01-03-2008 09:01 AM
Can't import ninjascript lexan97 Miscellaneous Support 4 12-16-2007 07:20 PM


All times are GMT -6. The time now is 12:53 PM.