Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

backtesting

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    backtesting

    I want to back test a strategy but I want to use the contract I would have traded for the month I'm testing... how do I set NT8 to change the contract over a 6 month rolling period.

    #2
    Hello abdullah,

    NinjaTrader is setup by default to load historical data for the expiry month that was the front month upon backtesting. I assume 'Global merge policy' is set to 'Merge back adjusted' at Control Center-->Tools-->Options-->Market data.

    Historical data is loaded as per the rollover dates setup. You can find rollover dates in NinjaTrader 8 as follows.

    Go to Control Center-->Tools-->Instruments.

    Double click a futures instrument.

    Scroll to the bottom in the new window that opens up.

    Click the Contract months field and another window opens up.

    The new window shows all expiry months and their rollover dates.


    For example, the ES uses the following rollover dates:

    12-17 - September 7th 2017
    09-17 - June 8th 2017
    06-17 - March 9th 2017
    03-17 - December 8th 2016

    This means that between September 7th and June 8th, historical data for the 09-17 expiry month is loaded. 06-17 historical data is loaded between June 8th and March 9th and so on.
    JasonNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by BarzTrading, Today, 07:25 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by EB Worx, 04-04-2023, 02:34 AM
    7 responses
    161 views
    0 likes
    Last Post VFI26
    by VFI26
     
    Started by Mizzouman1, Today, 07:35 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by Radano, 06-10-2021, 01:40 AM
    20 responses
    616 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by i019945nj, 12-14-2023, 06:41 AM
    6 responses
    68 views
    0 likes
    Last Post i019945nj  
    Working...
    X