Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy Analyzer and Contract Rollover
Collapse
X
-
Strategy Analyzer and Contract Rollover
I've been having difficulty understanding how to do contract rollover in Strategy Analyzer. The instrument is CL which changes contract every month. Say, I want to test my strategy over the entire year of 2016. How is this done?Tags: None
-
Helly reynoldsn, and thank you for your question.
To clarify the way contract front-months work, if you select for instance 03-17 as your front month expiry, and you iterate over 2 years, you will have data available for the entire 3 year range automatically. The historical data server you are pulling from has organized data in such a way that you can pull a continuous feed from a single front month going back as far as there is historical data for that instrument.
Therefore to test an entire year's worth of CL data, with an expiry front-month of 01-17, just select CL 01-17 as your instrument, and then a data range that covers a year.
Please let us know if there are any other ways we can help.Jessica P.NinjaTrader Customer Service
-
Hello,
How does ninjatrader choose the current contract month when testing a large date range? Does it use contract roll dates rather than expiration dates? Is there a way to find out on what dates it chooses to use which contract? When viewing the chart or results, is it possible to determine which contract is being used for a particular trade? Thanks.
Comment
-
Hello wooofad,
Thanks for your post.
The strategy analyzer and your chart, by default, will use the contract rollover dates for pulling historical data.
You can find all rollover dates on a per instrument basis by going to Tools>instrument then type or find an instrument, select it and select "edit" at the bottom right. In the "Instrument" window, scroll to the last row which will be the contract months, click in the row to then open the "Contract months" list. For reference, please see https://ninjatrader.com/support/help...nstruments.htm
"When viewing the chart or results, is it possible to determine which contract is being used for a particular trade?" No. What you can do is to export the "Trades" display of the analyzer to a spreadsheet and then filter it (though the spreadsheet functions) by dates related to the rollovers. On a chart, you could manually add vertical lines to visually define the contract dates.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
52 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
130 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
70 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
44 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment