![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Aug 2009
Posts: 115
Thanks: 3
Thanked 7 times in 7 posts
|
New session identificator code:
if (Bars.FirstBarOfSession && FirstTickOfBar) doesn't work for Renko bars and some other custom bar types similar to renko I tested so far (it seems like it works on minute bars but needs some further testing). Please take a look at the attached screenshot and test strategy which should draw vertical line when new session starts (but it doesn't always draw it) |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
gregid,
Please ensure you are on NT7B10. This should have been already fixed.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Aug 2009
Posts: 115
Thanks: 3
Thanked 7 times in 7 posts
|
Josh, I am afraid I am on Beta 10...
|
|
|
|
|
|
#4 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Could you please:
- terminate NT - delete the directory <my documents>/NinjaTrader7/db/cache - start NT and see if the issue still persists May be just the cache held corrupted data.... Thanks
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Aug 2009
Posts: 115
Thanks: 3
Thanked 7 times in 7 posts
|
Nope, deleting cache folder didn't solve the problem.
|
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Aug 2009
Posts: 115
Thanks: 3
Thanked 7 times in 7 posts
|
Observation: the bigger the renko bar size the likelihood of identifying a new session is getting smaller
|
|
|
|
|
|
#7 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
gregid,
Here is what your script looks like running on a 13 renko chart. It properly identified 2/26 session break. Can you please try a 100% clean reinstall?
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Aug 2009
Posts: 115
Thanks: 3
Thanked 7 times in 7 posts
|
I will do clean reinstall, in the meantime could you also check it on forex data (Gain feed) for $EURGBP - it couldn't identify new session for 26/02 in any combination I tried
|
|
|
|
|
|
#9 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
Well first of all, your chart doesn't even look properly loaded. A 4 renko chart of forex would yield significantly more bars (multiple full windows for a day requiring much scrolling). How you managed to load the chart with multiple days in view suggests you are missing significant chunks of data.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Oct 2007
Posts: 1,829
Thanks: 12
Thanked 83 times in 67 posts
|
I have tested this with Renko bars, and for the test it worked. The SessionPivots indicator uses Bars.FirstBarOfSession and it correctly plots on Renko charts - this at least what I have tested.
|
|
|
|
|
|
#11 |
|
Senior Member
Join Date: Aug 2009
Posts: 115
Thanks: 3
Thanked 7 times in 7 posts
|
After clean install it shows exactly as in the first post and still doesn't catch the new session.
Can someone please post a screenshot of 4 renko $EURGBP between 02/25-2/26/2010 using free Gain demo feed with the strategy attached to the first post loaded? Thanks |
|
|
|
|
|
#12 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
GAIN demo doesn't provide you with enough historical data to be on session breaks. Session break is 5PM Eastern Time when using the default Forex template. Trying to pull a Renko chart of that results in a chart that goes from 5PM to 5PM for one day. There is no session break inbetween from 2/25 to 2/26 so for sure there is no line drawn at 12:00 midnight.
You would only see the lines as you had data going from before 5pm to past 5pm ET. If you instead use Default 24/7 then you would see the break at midnight if you were in Eastern Time Zone. Attached is a screenshot of just that, but showing up at 22:00 because I am in Mountain Time which is -2 from ET.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#13 |
|
Senior Member
Join Date: Oct 2007
Posts: 1,829
Thanks: 12
Thanked 83 times in 67 posts
|
If you use Gain Feed / NinjaTrader Server: The data is corrupted. There is no data between Feb 24 18:42 and Feb 26. Garbage in -> garbage out. If you want to use Renko charts, this would require a decent data feed and not a collection of holes.
|
|
|
|
|
|
#14 |
|
Senior Member
Join Date: Aug 2009
Posts: 115
Thanks: 3
Thanked 7 times in 7 posts
|
OK, this slowly starts to make some sense. I will check the forex data with the one from market replay... but - I will start a new thread with a MR bug
|
|
|
|
|
|
#15 |
|
Senior Member
Join Date: Oct 2007
Posts: 1,829
Thanks: 12
Thanked 83 times in 67 posts
|
Bars.FirstBarOfSession is not working on Renko charts. It had not been working on some early releases, then it worked on the subsequent releases, and now it does not work again.
This is a bit confusing. Could you please check into?
|
|
|
|
| Tags |
| new session, renko |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bug in Bars.FirstBarOfSession | Baruch | Strategy Development | 8 | 08-06-2010 03:26 PM |
| Bars.FirstBarOfSession | MXASJ | Version 7 Beta General Questions & Bug Reports | 5 | 05-17-2010 08:28 AM |
| NT7B9 Bars.FirstBarOfSession using Default 24/7 | whitmark | Version 7 Beta General Questions & Bug Reports | 6 | 02-16-2010 03:08 AM |
| why does not Bars.FirstBarOfSession not fired | junkone | Strategy Development | 3 | 04-29-2009 09:42 AM |
| Bars.FirstBarOfSession not set to true during backtest? | tradefaz | General Programming | 1 | 09-03-2008 08:19 AM |