NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support

Miscellaneous Support Miscellaneous support issues.

Reply
 
Thread Tools Display Modes
Old 12-08-2009, 12:26 PM   #1
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 713
Thanks: 11
Thanked 10 times in 7 posts
Default 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
cunparis is offline  
Reply With Quote
Old 12-08-2009, 12:32 PM   #2
NinjaTrader_Jason
NinjaTrader Customer Service
 
NinjaTrader_Jason's Avatar
 
Join Date: Aug 2007
Location: Breda, Netherlands
Posts: 11,324
Thanks: 92
Thanked 354 times in 345 posts
Default

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.
NinjaTrader_Jason is offline  
Reply With Quote
Old 12-08-2009, 01:38 PM   #3
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 713
Thanks: 11
Thanked 10 times in 7 posts
Default

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
cunparis is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Continuous contract data merge janniss Charting 5 06-06-2010 10:29 AM
How can you create a continuous contract for long term futures contract backtesting Thorserb2 Market Analyzer 11 03-16-2010 11:19 AM
Continuous Contract for Backtesting dancorcal Strategy Analyzer 11 08-01-2009 03:22 PM
Backtesting continuous YM contract monpere Strategy Analyzer 28 11-27-2008 05:19 AM
Back Adjusted Continuous Contract Data -- IQfeed RK_trader Miscellaneous Support 11 03-10-2008 11:47 PM


All times are GMT -6. The time now is 06:54 AM.