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 > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 08-18-2010, 03:38 PM   #1
rpadrela
Junior Member
 
Join Date: May 2010
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
Default Building a chart using data from file

Hi,

I'd like to know if it's possible to use the charts to plot data from a text file.

I have all the data required to build the chart in a text file, I want to read it and construct the chart.

Could you please point me in the correct direction ? Is that done through scripting ? How do I create the script ? How do I run it ? etc...

Cheers
Last edited by rpadrela; 08-18-2010 at 03:40 PM.
rpadrela is offline  
Reply With Quote
Old 08-18-2010, 03:44 PM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello rpadrela,

Welcome to the NinjaTrader forums!

If this is OHLC price data, then you can format and import into the platform.
http://www.ninjatrader-support.com/H...V6/Import.html

If this is not price data, you can see here for the NinjaScript reference samples on reading from a file:
http://www.ninjatrader.com/support/f...ead.php?t=3477
http://www.ninjatrader.com/support/f...ead.php?t=3476
NinjaTrader_RyanM is offline  
Reply With Quote
Old 08-18-2010, 04:56 PM   #3
rpadrela
Junior Member
 
Join Date: May 2010
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
Default

I've managed to convert my data into ninja's format. It's importing the data well but now it seems like I need to create an instrument, could you please provide some help on how to setup it up ?

Cheers
rpadrela is offline  
Reply With Quote
Old 08-18-2010, 05:08 PM   #4
rpadrela
Junior Member
 
Join Date: May 2010
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
Default

How do I chart the imported data ?
rpadrela is offline  
Reply With Quote
Old 08-19-2010, 07:14 AM   #5
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,397
Thanks: 252
Thanked 968 times in 951 posts
Default

Which instruments data are you woroking with? The easiest would be to name your imported file in a way that NinjaTrader imports the data to a already existing master instrument, for example name the file ES 09-10.txt to import historical data for the ES September contract, the current front month at this time.

You can also add / create a custom instrument for this -

http://www.ninjatrader-support.com/H...eDatabase.html

http://www.ninjatrader-support.com/H...struments.html
NinjaTrader_Bertrand is online now  
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
Building a Continuous Chart of Front Month Futures Contracts MJUK10 Charting 1 05-31-2010 04:11 AM
Best way to get text data onto a chart from an external file Turtle Trader Indicator Development 1 11-04-2009 02:23 PM
Can't show latest data point from historical data file xewoox Charting 3 12-31-2008 07:16 AM
How to export a chart file mrbeanbag Charting 2 09-22-2008 05:57 AM
building own continuous chart in NT (Data Storage and backfill in NT) Rocket130713 Automated Trading 3 08-25-2008 10:36 PM


All times are GMT -6. The time now is 06:12 AM.