![]() |
|
|||||||
| Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports. |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Certified NinjaScript Consultant
Join Date: Jun 2010
Location: North Carolina, US
Posts: 25
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,017 times in 998 posts
|
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
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 | |
|
Certified NinjaScript Consultant
Join Date: Jun 2010
Location: North Carolina, US
Posts: 25
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
I am using the strategy logic to exist trades when the condition is met (time is within the specified window) |
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,017 times in 998 posts
|
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?
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#5 | |
|
Certified NinjaScript Consultant
Join Date: Jun 2010
Location: North Carolina, US
Posts: 25
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
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 |
|
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,017 times in 998 posts
|
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.
Bertrand
NinjaTrader Customer Service |
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
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 |