NexusFi: Find Your Edge


Home Menu

 





Exporting rollover dates from NT


Discussion in NinjaTrader

Updated
    1. trending_up 1,720 views
    2. thumb_up 4 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 1 attachments




 
Search this Thread

Exporting rollover dates from NT

  #1 (permalink)
 
Sawyer's Avatar
 Sawyer 
Berlin, Germany
 
Experience: None
Platform: IB
Trading: Stocks
Posts: 132 since Jul 2012
Thanks Given: 42
Thanks Received: 50

Hi, I was wondering if it is possible to export the futures rollover dates from NT into a CSV (just the dates and the symbols, no price data) to look something like this:

2020-12-20,ZW-2020Z,ZW-2021H

Any ideas on how to do this?

Kind regards

Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
How to apply profiles
Traders Hideout
Cheap historycal L1 data for stocks
Stocks and ETFs
What broker to use for trading palladium futures
Commodities
MC PL editor upgrade
MultiCharts
 
  #2 (permalink)
 sg72 
Orange County, CA, USA
 
Experience: Intermediate
Platform: NinjaTrader, Fidelity ATP
Trading: ES/NQ/RTY, Equity ETFs, Options
Posts: 59 since Sep 2018
Thanks Given: 44
Thanks Received: 48

I don't know about NT7, but you can get to this information in NT8 by following the steps below. But I don't know if there's a way to easily export all of it into excel.

In NT8:
Tools -> Instruments
Select your desired instrument, click edit
In Properties windows scroll down to Contract Months and click on the rollovers
Then you can look through the various contract months and their rollover date.

If you're familiar with NT8 programming interface, this might give you a way to programmatically get to the same info.

https://ninjatrader.com/support/helpGuides/nt8/?rollovercollection.htm

Hope this helps.

Reply With Quote
Thanked by:
  #3 (permalink)
 
Sawyer's Avatar
 Sawyer 
Berlin, Germany
 
Experience: None
Platform: IB
Trading: Stocks
Posts: 132 since Jul 2012
Thanks Given: 42
Thanks Received: 50


Thanks, this helps a lot!

I'm not familiar with NT's programming interface, unfortunately. But maybe I can find someone who is and point him in the right direction!

Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #4 (permalink)
 sg72 
Orange County, CA, USA
 
Experience: Intermediate
Platform: NinjaTrader, Fidelity ATP
Trading: ES/NQ/RTY, Equity ETFs, Options
Posts: 59 since Sep 2018
Thanks Given: 44
Thanks Received: 48

The code is super simple. Here it is. Just import this into NT8 and add it to a chart as an indicator.
The output will show up in the NinjaScript Output window.

To import:
Tools -> Import -> NinjaScript Add-on
and then point to the zip file. Don't unzip the file.

To open an NS Output window:
New -> NinjaScript Output

Then just add the indicator called ShowRollovers to a chart of a Future product and it should work.
I only tested it on ES. Should work on other products too as long as the info is available in NT.

Enjoy

Attached Files
Elite Membership required to download: ShowRollovers.zip
Reply With Quote
Thanked by:
  #5 (permalink)
 
Sawyer's Avatar
 Sawyer 
Berlin, Germany
 
Experience: None
Platform: IB
Trading: Stocks
Posts: 132 since Jul 2012
Thanks Given: 42
Thanks Received: 50

Oh wow, I wasn't expecting that! Thank you so much!

Visit my NexusFi Trade Journal Started this thread Reply With Quote




Last Updated on November 25, 2020


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts