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 10-22-2009, 10:33 AM   #1
hemlock
Senior Member
 
Join Date: Nov 2007
Location: Michigan, USA
Posts: 116
Thanks: 1
Thanked 0 times in 0 posts
Default Consistent failure

I have a consistent failure when doing the following:

1. Start version 7 with an empty workspace
2. Connect to Interactive Brokers
3. Create new chart. Add "YM 12-09", then add "^TICK" (both 5 minute interval). YM is in panel 1, ^TICK is in panel2.
4. After chart is displayed add the indicator kpTickLines to the ^TICK data series. (indicator script is attached)
5. Change the chart interval from 5 minute to 1 minute.
6. Keep alternating the interval between 5 minute and 1 minute. Usually within the first five interval changes an error will be thrown. Sometimes it says kpTickLines cannot be serialized. Sometimes it just fails. (see attached trace file).
Attached Files
File Type: cs kpTickLines.cs (7.4 KB, 5 views)
File Type: txt trace.20091022.txt (14.4 KB, 3 views)
hemlock is offline  
Old 10-22-2009, 11:01 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Your script does not compile. LastBarOnChart is not a NinjaTrader property.
NinjaTrader_Josh is offline  
Old 10-22-2009, 11:05 AM   #3
hemlock
Senior Member
 
Join Date: Nov 2007
Location: Michigan, USA
Posts: 116
Thanks: 1
Thanked 0 times in 0 posts
Default

Sorry, that's in my UserDefinedMethods.

Code:
[Browsable(false)]
[XmlIgnore]
publicbool LastBarOnChart
{
get
{
if (!CalculateOnBarClose && CurrentBar == Bars.Count - 1)
returntrue;
elseif (CalculateOnBarClose && CurrentBar == Bars.Count - 2)
returntrue;
returnfalse;
}
}
hemlock is offline  
Old 10-22-2009, 11:20 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Please provide full context for your UserDefinedMethods. Or better yet, please provide a workable script without UserDefinedMethods, thank you.
NinjaTrader_Josh is offline  
Old 10-22-2009, 11:30 AM   #5
hemlock
Senior Member
 
Join Date: Nov 2007
Location: Michigan, USA
Posts: 116
Thanks: 1
Thanked 0 times in 0 posts
Default

Here you go.
Attached Files
File Type: cs kpTickLines.cs (7.3 KB, 4 views)
hemlock is offline  
Old 10-22-2009, 11:36 AM   #6
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Which series are you changing the time interval for in step 5? YM or TICK? How are you changing the interval too? Tool menu drop down? Data Series window? Typing 1M then 5M?
NinjaTrader_Josh is offline  
Old 10-22-2009, 12:15 PM   #7
hemlock
Senior Member
 
Join Date: Nov 2007
Location: Michigan, USA
Posts: 116
Thanks: 1
Thanked 0 times in 0 posts
Default

Tool menu drop down
hemlock is offline  
Old 10-22-2009, 02:52 PM   #8
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Are you selecting the secondary series each time before going to the Toolbar menu?
NinjaTrader_Josh is offline  
Old 10-22-2009, 02:57 PM   #9
hemlock
Senior Member
 
Join Date: Nov 2007
Location: Michigan, USA
Posts: 116
Thanks: 1
Thanked 0 times in 0 posts
Default

No, neither of the data series are selected.
hemlock is offline  
Old 10-22-2009, 04:09 PM   #10
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

I am unable to reproduce on latest sources, but a colleague was able to reproduce on NT7B2. This leads me to believe the issue may be already fixed. Please try again on the next version and let us know if it doesn't work. Thank you.
NinjaTrader_Josh is offline  
Old 10-22-2009, 04:17 PM   #11
hemlock
Senior Member
 
Join Date: Nov 2007
Location: Michigan, USA
Posts: 116
Thanks: 1
Thanked 0 times in 0 posts
Default

Will do. Thanks Josh.
hemlock 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
DrawDot and DrawText y coordinate not consistent claxxical General Programming 4 08-17-2009 08:20 AM
Chart Bars non consistent davewolfs Charting 12 08-05-2009 11:03 AM
window icon ordering on taskbar is not consistent kh_model Suggestions And Feedback 3 11-18-2008 04:56 AM
Harddisk failure T4M Miscellaneous Support 1 05-02-2007 06:11 AM
Power failure T4M Installation and Licensing 3 04-17-2007 05:39 AM


All times are GMT -6. The time now is 02:15 AM.