NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Suggestions and Feedback > Suggestions And Feedback

Suggestions And Feedback New feature suggestions and feedback.

Reply
 
Thread Tools Display Modes
Old 03-10-2012, 05:08 AM   #1
dalisdj
Member
 
Join Date: Oct 2011
Posts: 30
Thanks: 4
Thanked 1 time in 1 post
Default Multi-session multi-timeframe strategy backtest bug

Hi NinjaTrader support,

I found one bug at strategy backtesting. This happens at multi-session instruments, like Wheat (ZW), session CBOT Agricultural ETH. If your primary bars is Minute and secondary bars is Day, the strategy bars flow act this way:
  • First goes bars from first Minute session UTC-06 [18:00, 7:15],
  • then goes Day bar
  • and after that goes bars from second Minute session UTC-06 [9:30, 13:15]
In another words, in second session I simply know, where the price is going to close, so I simply may decide if go long or short.

Let's consider, that my timezone in PC is set to UTC+01, so my sessions are [01:00, 14:15] and [16:30, 20:15]

I attach strategy, which demonstrate this problem. In my case the strategy is not 100% as should be expected because of some incoherence between minute data and day data, but hope that equity speaks for itself.
Attached Images
File Type: png ZWBugChart.png (168.6 KB, 19 views)
File Type: png ZWBugEquity.png (56.2 KB, 12 views)
Attached Files
File Type: cs ZWBugDemo.cs (1.8 KB, 4 views)
dalisdj is offline  
Reply With Quote
Old 03-12-2012, 08:25 AM   #2
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,499
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

Thank you for the report.

I am checking into this.

-Brett
NinjaTrader_Brett is offline  
Reply With Quote
Old 03-12-2012, 10:48 AM   #3
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

dalisdj,

Thanks for your note.

I am unable to replicate this with Kinetick. Who is your data provider?

I changed my timezone to UTC + 1, used the session template you did, loaded a 15 minute chart of ZW ##-##. I am getting orders with losses as well as profits. I see nothing abnormal when comparing to Daily chart.

It is suggested you try this with a data series set to minute 1440 and see if it remedies the issue.
NinjaTrader_AdamP 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
How to use different session templates in multi-timeframe/multi-instrument strategy? bourbonnais Automated Trading 6 03-19-2012 03:36 AM
multi instrument / multi timeframe strategy - Round2TickSize drolles Automated Trading 3 08-11-2011 05:21 PM
multi instrument / multi timeframe strategy - FirstBarOfSession drolles Automated Trading 1 08-11-2011 04:52 PM
BackTest bug using Multi-timeframe dsidlo Strategy Development 7 02-19-2009 10:19 AM
Bug: multi-timeframe strategy non-primary bar is off by one henry.omd Strategy Development 1 11-15-2007 12:37 AM


All times are GMT -6. The time now is 10:19 AM.