NinjaTrader Support Forum  
X

Attention!

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


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 02-26-2010, 12:44 PM   #1
gregid
Senior Member
 
Join Date: Aug 2009
Posts: 115
Thanks: 3
Thanked 7 times in 7 posts
Default Bars.FirstBarOfSession doesn't work with Renko bars

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)
Attached Images
File Type: png FirstBarOfSession_incorrect.png (197.7 KB, 15 views)
Attached Files
File Type: zip NewSessionRenkoTest.zip (2.8 KB, 3 views)
gregid is offline  
Old 02-26-2010, 12:54 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

gregid,

Please ensure you are on NT7B10. This should have been already fixed.
NinjaTrader_Josh is offline  
Old 02-26-2010, 01:04 PM   #3
gregid
Senior Member
 
Join Date: Aug 2009
Posts: 115
Thanks: 3
Thanked 7 times in 7 posts
Default

Josh, I am afraid I am on Beta 10...
gregid is offline  
Old 02-26-2010, 01:06 PM   #4
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

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
NinjaTrader_Dierk is offline  
Old 02-26-2010, 01:14 PM   #5
gregid
Senior Member
 
Join Date: Aug 2009
Posts: 115
Thanks: 3
Thanked 7 times in 7 posts
Default

Nope, deleting cache folder didn't solve the problem.
gregid is offline  
Old 02-26-2010, 01:31 PM   #6
gregid
Senior Member
 
Join Date: Aug 2009
Posts: 115
Thanks: 3
Thanked 7 times in 7 posts
Default

Observation: the bigger the renko bar size the likelihood of identifying a new session is getting smaller
gregid is offline  
Old 02-26-2010, 01:53 PM   #7
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

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?
Attached Images
File Type: jpg Capture.JPG (82.5 KB, 10 views)
NinjaTrader_Josh is offline  
Old 02-26-2010, 02:06 PM   #8
gregid
Senior Member
 
Join Date: Aug 2009
Posts: 115
Thanks: 3
Thanked 7 times in 7 posts
Default

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
gregid is offline  
Old 02-26-2010, 02:32 PM   #9
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

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.
NinjaTrader_Josh is offline  
Old 02-26-2010, 02:34 PM   #10
Harry
Senior Member
 
Join Date: Oct 2007
Posts: 1,829
Thanks: 12
Thanked 83 times in 67 posts
Default

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.
Harry is offline  
Old 02-26-2010, 03:08 PM   #11
gregid
Senior Member
 
Join Date: Aug 2009
Posts: 115
Thanks: 3
Thanked 7 times in 7 posts
Default

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
gregid is offline  
Old 02-26-2010, 03:33 PM   #12
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

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.
Attached Images
File Type: jpg Capture.JPG (78.6 KB, 11 views)
NinjaTrader_Josh is offline  
Old 02-26-2010, 03:51 PM   #13
Harry
Senior Member
 
Join Date: Oct 2007
Posts: 1,829
Thanks: 12
Thanked 83 times in 67 posts
Default Garbage in -> garbage out

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.


Quote:
Originally Posted by gregid View Post
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
Harry is offline  
Old 02-26-2010, 04:05 PM   #14
gregid
Senior Member
 
Join Date: Aug 2009
Posts: 115
Thanks: 3
Thanked 7 times in 7 posts
Default

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
gregid is offline  
Old 05-07-2010, 09:35 AM   #15
Harry
Senior Member
 
Join Date: Oct 2007
Posts: 1,829
Thanks: 12
Thanked 83 times in 67 posts
Default Bars.FirstBarOfSession not working

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?
Harry is offline  
 

Tags
new session, renko

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
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


All times are GMT -6. The time now is 05:43 AM.