Go Back   NinjaTrader Support Forum > NinjaTrader 8 > Platform Technical Support

Platform Technical Support General platform technical support for NinjaTrader 8.

NinjaTrader
Reply
 
Thread Tools Display Modes
Old 07-06-2017, 02:58 AM   #1
Mlokz
Junior Member
 
Join Date: Feb 2017
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Lightbulb Exporting everything I have on chart

Hello!

I can export historical data using Ninjatrader, minute data, or tick data, thats awesome.

But I am not using minute bars and tick data for ES are huge!

What I need is to export my chart information. For each bar I need to export what Data Box says, Open, High, Low, Close, Volume, it have also information about indicators like VWAP. It can also read indicators like Delta.

How do I do that? Exprting Data Box informations for each bar of my chart? I know that those informations are somewhere when my Bata Box can read it, I just need to run some statistics on those bars and re-calculation everything from tick data is pain.
Mlokz is offline  
Reply With Quote
Old 07-06-2017, 05:53 AM   #2
NinjaTrader_Paul
NinjaTrader Customer Service
 
NinjaTrader_Paul's Avatar
 
Join Date: May 2014
Posts: 2,939
Thanks: 341
Thanked 689 times in 666 posts
Default

Hello Mlokz,

Thanks for your post and welcome to the forums!

There is no built-in means to accomplish your goals directly, however, you can create a custom ninjascript that would allow you to export the chart data, So if you are using for example 8 range bars then you could export the bar data as 8 range bars and any indicator values as well. We have a working example that exports the charts bar data and bar time stamp that you could use and build on to add indicator values. The example can be found here: http://ninjatrader.com/support/forum...ead.php?t=3475
NinjaTrader_Paul is offline  
Reply With Quote
Old 07-16-2017, 10:23 PM   #3
Mlokz
Junior Member
 
Join Date: Feb 2017
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default

I tried to make it work, but I think I dont fully understand it. So I should run some sorn of software, then run indicator and with conjunction of that indicator and software I will read chart data with this software and export everything?
Mlokz is offline  
Reply With Quote
Old 07-17-2017, 06:57 AM   #4
NinjaTrader_Paul
NinjaTrader Customer Service
 
NinjaTrader_Paul's Avatar
 
Join Date: May 2014
Posts: 2,939
Thanks: 341
Thanked 689 times in 666 posts
Default

Hello Mlokz,

Thanks for your reply.

The reference sample is an indicator that you can add to your chart. When added to a chart it will create a file called "MyTestFile.txt" which would be found in Documents>NinjaTrader8. The file will contain a line for every bar in your data series. Each line will contain the time stamp of the bar and the open, high, low, and close values of the bar.

The sample is provided as an example of how to code an indicator that can output chart data to a file. To output additional information, you would need to modify the example.
NinjaTrader_Paul is offline  
Reply With Quote
Old 07-17-2017, 10:29 AM   #5
Mlokz
Junior Member
 
Join Date: Feb 2017
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default Nice

Thanks!

I think I get it. I have text file and I found lines in code that represents what is in there:

sw = File.AppendText(path); // Open the path for writing
sw.WriteLine(Time[0] + " " + Open[0] + " " + High[0] + " " + Low[0] + " " + Close[0]); // Append a new line to the file
sw.Close(); // Close the file to allow future calls to access the file again.

Ok, but nbow I need to add some more data, for example I would like to know the delta in each bar. Can I somehow export indicator data as well? Maybe in a separate file? I Dont mind having multiple files as long as I get data I need.
Mlokz is offline  
Reply With Quote
Old 07-17-2017, 11:18 AM   #6
NinjaTrader_Paul
NinjaTrader Customer Service
 
NinjaTrader_Paul's Avatar
 
Join Date: May 2014
Posts: 2,939
Thanks: 341
Thanked 689 times in 666 posts
Default

Hello Mlokz,

Thanks for your reply.

Yes, as previously advised, you can modify the example (or code a new one) to meet your needs. Certainly, you can include indicator data or any calculation you wish. You could modify the example and simply add on to the existing string.

These modifications (or create a new indicator) are what you would need to do, we do not provide coding or debugging services. If you would like something done for you, we can provide you with references to 3rd party code creators.

If you would like to make changes to the code yourself and are unfamiliar with Ninjascript, we can provide reference links to assist in your educational effort.
NinjaTrader_Paul is offline  
Reply With Quote
Old 07-17-2017, 12:22 PM   #7
Mlokz
Junior Member
 
Join Date: Feb 2017
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default

Thank you Paul, I appriciate your help. I will learn how to do it
Mlokz is offline  
Reply With Quote
Reply

Tags
export data

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
Exporting the chart and indicator data to Excel jzag456 Platform Technical Support 4 11-20-2015 07:43 AM
Exporting Price and Indicator Data from chart StevenV Platform Technical Support 27 10-06-2015 12:59 AM
Ninjascript for exporting chart images uk123 General Development 1 02-06-2011 01:50 PM
Exporting Chart data BurtOD Platform Technical Support 5 05-21-2010 03:16 AM
Exporting Chart Data monti1a Platform Technical Support 3 10-15-2008 03:37 PM


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

Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.

CFTC Rules 4.41 - Hypothetical or Simulated performance results have certain limitations, unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

This website is hosted and operated by NinjaTrader, LLC (“NT”), a software development company which owns and supports all proprietary technology relating to and including the NinjaTrader trading platform. NT is an affiliated company to NinjaTrader Brokerage (“NTB”), which is a NFA registered introducing broker (NFA #0339976) providing brokerage services to traders of futures and foreign exchange products. This website is intended for educational and informational purposes only and should not be viewed as a solicitation or recommendation of any product, service or trading strategy. No offer or solicitation to buy or sell securities, securities derivative or futures products of any kind, or any type of trading or investment advice, recommendation or strategy, is made, given, or in any manner endorsed by any NT affiliate and the information made available on this Web site is not an offer or solicitation of any kind. Specific questions related to a brokerage account should be sent to your broker directly. The content and opinions expressed on this website are those of the authors and do not necessarily reflect the official policy or position of NT or any of its affiliates. 

Vendors along with their websites, products and services, collectively referred to as (“Vendor Content”), are independent persons or companies that are in no manner affiliated with NT or any if its affiliates. NT or any of its affiliates are not responsible for, do not approve, recommend or endorse any Vendor Content referenced on this website and it’s your sole responsibility to evaluate Vendor Content. Please be aware that any performance information provided by a vendor should be considered hypothetical and must contain the disclosures required by NFA Rule 2-29(c). If you are interested in learning more about, or investigating the quality of, any such Vendor Content you must contact the vendor, provider or seller of such Vendor Content. No person employed by, or associated with, NT or any of its affiliates is authorized to provide any information about any such Vendor Content. Visit the CFTC resources for education regarding the industry and signs of fraud.