![]() |
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
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: May 2010
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
|
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.
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: May 2010
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: May 2010
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
|
How do I chart the imported data ?
|
|
|
|
|
|
#5 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,397
Thanks: 252
Thanked 968 times in 951 posts
|
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
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |