NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support > Historical Version 7 Beta Threads > Version 7 Beta General Questions & Bug Reports

Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports.

 
 
Thread Tools Display Modes
Old 07-25-2010, 03:24 PM   #1
powermoney
Certified NinjaScript Consultant
 
Join Date: Jun 2010
Location: North Carolina, US
Posts: 25
Thanks: 0
Thanked 0 times in 0 posts
Default NT 7 beta 19 - ToTime() historical calulations on tick based charts

After upgrading from beta 18 to 19, the ToTime() function, like code example below, does not appear to be working properly in Tick and Renko charts historically - when doing backtests and when attaching a strategy (backfilling trades on a chart). It works fine with Minute charts and works fine on all charts Real-Time.

// Only trade between 7:45 AM and 1:45 PM
if (ToTime(Time[0]) >= 74500 && ToTime(Time[0]) <= 134500)
{
// Strategy logic goes here
}

Thanks,

Powermoney
powermoney is offline  
Old 07-26-2010, 07:05 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,017 times in 998 posts
Default

Powermoney, thanks for the report, I was unfortunately not able to reproduce here yet, what dataprovider and symbols / sessions were you using in your testing?

Thanks
NinjaTrader_Bertrand is offline  
Old 07-26-2010, 11:45 AM   #3
powermoney
Certified NinjaScript Consultant
 
Join Date: Jun 2010
Location: North Carolina, US
Posts: 25
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Bertrand View Post
Powermoney, thanks for the report, I was unfortunately not able to reproduce here yet, what dataprovider and symbols / sessions were you using in your testing?

Thanks
Esignal - YM ES CL SI GC - Default 24/7

I am using the strategy logic to exist trades when the condition is met (time is within the specified window)
powermoney is offline  
Old 07-26-2010, 12:56 PM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,017 times in 998 posts
Default

I tried the attached for example on ES 333 Tick in the Strategy Analyzer backtests and backtesting from chartd and do not run into any issues, would you mind posting a sample that would not work as expected for you?
Attached Files
File Type: zip SMACrossTimeLimit.zip (2.9 KB, 4 views)
NinjaTrader_Bertrand is offline  
Old 07-27-2010, 02:48 PM   #5
powermoney
Certified NinjaScript Consultant
 
Join Date: Jun 2010
Location: North Carolina, US
Posts: 25
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Bertrand View Post
I tried the attached for example on ES 333 Tick in the Strategy Analyzer backtests and backtesting from chartd and do not run into any issues, would you mind posting a sample that would not work as expected for you?
In the strategy you sent, shrink the window to 15 minutes like so:

if (ToTime(Time[0]) >= 74500 && ToTime(Time[0]) <= 80000)

Set Exit on close to False, and look at a GC and YM Renko 20 charts

Also, look at a YM 20 range chart.


Powermoney
powermoney is offline  
Old 07-27-2010, 03:10 PM   #6
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,017 times in 998 posts
Default

powermoney, please see the screenshot attached, YM 20 Range on Default 24 / 7 sessions, ExitOnClose false, strategy modified as you suggested - both time exits from the last 2 days working as expected here for me, I get the same results when backtesting from SA.
Attached Images
File Type: png pm-ym.PNG (186.4 KB, 8 views)
NinjaTrader_Bertrand is offline  
 

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
using Tickdata.com to build historical intraday volume-based charts nicbizz Charting 4 07-18-2010 11:24 AM
Calculate tick-based indicators on historical bars JangoFolly Suggestions And Feedback 11 04-02-2010 11:37 PM
Rebuilding Tick Based Indicators on Historical Data aviat72 Indicator Development 1 12-22-2009 01:22 AM
Alternative to tick based/bar based strategy calculation? (i.e every minute/X ticks) Elliott Wave Strategy Development 9 07-11-2008 03:11 AM


All times are GMT -6. The time now is 11:52 AM.