NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 01-09-2012, 06:33 AM   #1
saltminer
Senior Member
 
Join Date: Apr 2008
Posts: 164
Thanks: 2
Thanked 3 times in 3 posts
Default multi timeframe indicator chart crash

Hi guys,
I've got an indicator which can load up to 4 additional timeframes, of the same PeriodType as the chart.
The indicator works fine, but after a few times of opening the dialogue window and changing the user inputs for the periods of the additional timeframes or the number of additional timeframes, the chart seems to crash. After hitting OK that last time, the chart is blank and the menu icons are greyed-out.

Ninja is still responsive.
There is no entry in the Log tab about any error or exception.
There is no text bottom right of Control Centre about loading data.

There are no while() loops in the code to cause an infinite loop.

I've dug this out of the trace file. Can you shed any light on the situation for me?

2012-01-10 00:22:40:182 in OnUnhandledThreadException
2012-01-10 00:22:40:182 *************** unhandled exception trapped ***************
2012-01-10 00:22:40:182 Index was outside the bounds of the array.
2012-01-10 00:22:40:182 at NinjaTrader.Indicator.IndicatorBase.set_BarsArray( Bars[] value)
at NinjaTrader.Gui.Chart.ChartIndicators.Apply()
at NinjaTrader.Gui.Chart.ChartIndicators.OnOkButtonCl ick(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Many thanks,
saltminer.
saltminer is offline  
Reply With Quote
Old 01-09-2012, 06:51 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,555
Thanks: 261
Thanked 1,013 times in 994 posts
Default

saltminer, would it be possible to test for us with a simplied script using the same MTF structure to reproduce here? Are you seeing this on our latest version NT7 R8?
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 01-09-2012, 05:01 PM   #3
saltminer
Senior Member
 
Join Date: Apr 2008
Posts: 164
Thanks: 2
Thanked 3 times in 3 posts
Default

I have emailed it to support@ninjatrader.com

I am using the latest version .8
saltminer
saltminer is offline  
Reply With Quote
Old 03-25-2012, 05:06 PM   #4
Ricam
Senior Member
 
Join Date: Jul 2009
Posts: 143
Thanks: 5
Thanked 11 times in 7 posts
Unhappy Similar problem

I am having the same problem. Has any cause been identified since this post was made?

There is a try catch block bracketing my Add method and it is not trapping any errors when the offending object is being ADDed.
Ricam is offline  
Reply With Quote
Reply

Tags
chart, crash, multitimeframe

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
Multi TimeFrame Indicator Help traderjem Indicator Development 4 02-24-2012 03:04 PM
looking for example 6.5 multi-timeframe indicator tulanch Indicator Development 2 10-08-2010 12:09 PM
Multi timeframe indicator sergeysamsonov Indicator Development 1 07-26-2010 06:08 AM
Multi-Timeframe indicator velocity Version 7 Beta General Questions & Bug Reports 3 12-23-2009 11:28 AM
Putting larger timeframe indicator over a shorter timeframe chart brownsfan019 Charting 1 06-25-2008 03:52 PM


All times are GMT -6. The time now is 03:03 PM.