![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Apr 2008
Posts: 164
Thanks: 2
Thanked 3 times in 3 posts
|
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. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,555
Thanks: 261
Thanked 1,013 times in 994 posts
|
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?
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Apr 2008
Posts: 164
Thanks: 2
Thanked 3 times in 3 posts
|
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Jul 2009
Posts: 143
Thanks: 5
Thanked 11 times in 7 posts
|
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. |
|
|
|
![]() |
| Tags |
| chart, crash, multitimeframe |
| Thread Tools | |
| Display Modes | |
|
|
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 |