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.

    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 CarlTrading, Yesterday, 09:41 PM
      1 response
      20 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, Today, 02:41 AM
      0 responses
      6 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, Yesterday, 11:44 PM
      0 responses
      17 views
      0 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      33 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      32 views
      0 likes
      Last Post CarlTrading  
      Working...
      X