Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtesting a continuous contract data

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

    Backtesting a continuous contract data

    I created a continuous contract but when I backtest it doesn't work. Here's how I did it:

    I exported CL 01-10 to text (tick data)
    I imported it into CL ##-##
    I then merged in other contract months up until July.
    I exported @CL.C minute data from tradestation and imported that into Ninja

    I opened a chart with minute data for the entire period - everything ok.
    I opened a chart with range bars for the entire period - everything ok.

    I backtest and I only get trades starting 11/20 which is exactly when the 01-10 data starts.

    I think that only the data I exported and imported is working with backtesting, and the merged data isn't working.

    Is there any reason that this wouldn't work? I'm really stuck on this.

    Thanks

    #2
    Hello cunparis,

    Yes, most likely the merge did not process properly.

    You can export all data and add it into a CL ##-##.txt file. Make sure the file contains correct data upon adding it together.

    Subsequently, import this CL ##-##.txt file into NinjaTrader and try the backtest once more.
    JasonNinjaTrader Customer Service

    Comment


      #3
      Since I don't hold overnight I realized that there is no advantage to the merge. So I just exported all my contracts, renamed the files to CL ##-##.txt and then imported them. Seems to work juts fine.

      Thanks

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by SantoshXX, Today, 03:09 AM
      0 responses
      6 views
      0 likes
      Last Post SantoshXX  
      Started by DanielTynera, Today, 01:14 AM
      0 responses
      2 views
      0 likes
      Last Post DanielTynera  
      Started by yertle, 04-18-2024, 08:38 AM
      9 responses
      41 views
      0 likes
      Last Post yertle
      by yertle
       
      Started by techgetgame, Yesterday, 11:42 PM
      0 responses
      12 views
      0 likes
      Last Post techgetgame  
      Started by sephichapdson, Yesterday, 11:36 PM
      0 responses
      2 views
      0 likes
      Last Post sephichapdson  
      Working...
      X