Exporting historical data NT7 to excel (contract rollover?) - NinjaTrader | futures io social day trading
futures io futures trading


Exporting historical data NT7 to excel (contract rollover?)
Updated: Views / Replies:4,268 / 8
Created: by sleepy Attachments:8

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Exporting historical data NT7 to excel (contract rollover?)

  #1 (permalink)
Elite Member
London, UK
 
Futures Experience: None
Platform: NinjaTrader
Favorite Futures: ES, CL
 
sleepy's Avatar
 
Posts: 114 since Sep 2010
Thanks: 2,173 given, 109 received

Exporting historical data NT7 to excel (contract rollover?)

I wish to view the daily OHLC and Volume for CL for past 12 months so I can maually track changes in Range etc, - similar to how mypivots does this daily (NYMEX Light Sweet Crude Oil February 2012) . I presume I can achieve this using Ninjatraders export historical data manager to dump this info. into a .csv file and then into excel.

Has anyone done this before, or track this info. on a regular basis?
And if so how do you allow for contract rollovers?

sleepy

Reply With Quote
The following user says Thank You to sleepy for this post:
 
  #2 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,357 given, 83,237 received


sleepy View Post
I wish to view the daily OHLC and Volume for CL for past 12 months so I can maually track changes in Range etc, - similar to how mypivots does this daily (NYMEX Light Sweet Crude Oil February 2012) . I presume I can achieve this using Ninjatraders export historical data manager to dump this info. into a .csv file and then into excel.

Has anyone done this before, or track this info. on a regular basis?
And if so how do you allow for contract rollovers?

sleepy

Yes, check here:
https://futures.io/download/ninjatrader-7/misc/339-download.html?view

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following 6 users say Thank You to Big Mike for this post:
 
  #3 (permalink)
 Vendor: tradingcode.net 
The Netherlands
 
Futures Experience: None
Platform: MultiCharts, TradingView
Favorite Futures: ...
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 661 received


How can I export the data including the last date with the ExportData strategy? For example, the current last date in the database is 27th January, however if I apply the ExportData strategy till January 30th, the last exported date is January 26th. In other words, the last date doesn't get written by the strategy.

It's has been a while since I used NinjaTrader, so I might be doing it wrong.

I have these settings with the ExportData strategy:
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


I couldn't find any errors in the code, but I'm no NinjaTrader expert.

Reply With Quote
 
  #4 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 786 received

This is where the ExportData code was left off. Not sure which version you have, but there was a bug fix that might have addressed that issue:

// 15 December 2010: ver 3.31 Minor bug fix where Open[0] data was not being output.

Hope it helps!

Attached Files
Register to download File Type: cs ExportData.cs (19.0 KB, 130 views)
Reply With Quote
The following 6 users say Thank You to MXASJ for this post:
 
  #5 (permalink)
 Vendor: tradingcode.net 
The Netherlands
 
Futures Experience: None
Platform: MultiCharts, TradingView
Favorite Futures: ...
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 661 received


MXASJ View Post
This is where the ExportData code was left off. Not sure which version you have, but there was a bug fix that might have addressed that issue:

// 15 December 2010: ver 3.31 Minor bug fix where Open[0] data was not being output.

Hope it helps!

Thanks MXASJ, very much appreciated. However, with the latest version (24 February 2011) I still can't export the last data, so I assume I'm doing it myself wrong.

Who can give me some feedback on these settings - are they wrong?

With these settings...
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


..I get this output:
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


...and this is in the NinjaTrader Database:
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


(February 3rd is missing from the output)

Any suggestions appreciated!

Reply With Quote
 
  #6 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: NinjaTrader, TOS
 
Posts: 798 since Jun 2009
Thanks: 109 given, 786 received

I'm guessing its because I use that in the Strategies tab and enable/disable to export the data, and not as a backtest. It works fine here. Tested on ES 3/12.

Attached Thumbnails
Exporting historical data NT7 to excel (contract rollover?)-jura1.jpg   Exporting historical data NT7 to excel (contract rollover?)-jura2.jpg   Exporting historical data NT7 to excel (contract rollover?)-jura3.jpg  
Reply With Quote
The following user says Thank You to MXASJ for this post:
 
  #7 (permalink)
 Vendor: tradingcode.net 
The Netherlands
 
Futures Experience: None
Platform: MultiCharts, TradingView
Favorite Futures: ...
 
Jura's Avatar
 
Posts: 774 since Apr 2010
Thanks: 2,347 given, 661 received


MXASJ View Post
I'm guessing its because I use that in the Strategies tab and enable/disable to export the data, and not as a backtest. It works fine here. Tested on ES 3/12.

Thanks MXASJ, that was it! I noticed that, in the 'strategy applied to chart' window, the CalculateOnBarClose had to be set to 'false' to export the last date (otherwise the result was the same as in the Strategy Analyzer), so I changed the ExportDate line CalculateOnBarClose to 'false'.

 
Code
        protected override void Initialize()
        {
            CalculateOnBarClose = false;
        }
Now it also exports the last values in the Strategy Analyzer, meaning that the ExportData strategy can be applied to a whole list of instruments at the same time.

Thanks for your help MXASJ, and for creating the strategy in the first place off course.

Reply With Quote
The following 2 users say Thank You to Jura for this post:
 
  #8 (permalink)
Elite Member
Fort Lupton, CO/ USA
 
Futures Experience: Intermediate
Platform: NinjaTrader, Market Delta
Broker/Data: AMP Futures and CQG Data
Favorite Futures: 30yr Bonds ZB
 
marketprofiletrader's Avatar
 
Posts: 7 since Aug 2009
Thanks: 2 given, 1 received

YOUTUBE VIDEO SHOWING HOW TO EXPORT NINJA DAT TO EXCEL

Export NinjaTrader Prices to Excel - YouTube

THIS WAS VERY EASY WORKED GREAT!

HOPE IT WAS HELPFUL TO YOU FOLKS


BRIAN

Reply With Quote
The following 4 users say Thank You to marketprofiletrader for this post:
 
  #9 (permalink)
Elite Member
Boston, MA
 
Futures Experience: Intermediate
Platform: NT & SC
Broker/Data: DDT and SC/CQG
Favorite Futures: NQ, ES, YM
 
bluecrow's Avatar
 
Posts: 42 since Apr 2013
Thanks: 163 given, 44 received

I was wondering if anyone is using this great tool to export indicator data?

I'm working with this section of the code:

********************
//This is the best place to modify the code to output indicator data if required.

string data = (Time[0].ToString("yyyy-MM-dd HH:mm:ss") + dataSeparator + Close[0] + EMA(14)[0]);
if (splitDateTime == true)
{
data = data.Replace(' ',dataSeparator);
}

sw.WriteLine(data);
break;
*********************

Does anyone have working examples of how this code can be adapted to export indicator data? The EMA example provided above is not working for me. I'm curious if others have managed to get it working for them.

Thanks.

Reply With Quote

Reply



futures io > > > > Exporting historical data NT7 to excel (contract rollover?)

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
continuous contract in NT7 /merge policy / rollover christo64 NinjaTrader 60 March 16th, 2017 02:08 PM
Exporting from NT7 to Excel : Examples Fat Tails NinjaTrader 14 March 10th, 2012 07:42 PM
Rollover future contract razorbuzz MultiCharts 3 September 13th, 2011 03:22 PM
CL data / contract changes > check NT7 merge policy meyer99 NinjaTrader 15 February 18th, 2011 08:08 AM
Exporting Volume Profile data from NT6.5 to Excel. How is it jungian Beginners and Introductions 4 May 20th, 2010 11:07 AM


All times are GMT -4. The time now is 11:10 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-18 in 0.13 seconds with 20 queries on phoenix via your IP 54.226.113.250