Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

multi timeframe indicator chart crash

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    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?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      I have emailed it to [email protected]

      I am using the latest version .8
      saltminer

      Comment


        #4
        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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by georgeinharmony, Today, 12:06 AM
        2 responses
        13 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by Prisalice, Yesterday, 07:07 AM
        2 responses
        16 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Futurestrader00, Yesterday, 12:04 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Blairski, Yesterday, 11:26 PM
        0 responses
        10 views
        0 likes
        Last Post Blairski  
        Started by aligator, Yesterday, 02:38 PM
        0 responses
        10 views
        0 likes
        Last Post aligator  
        Working...
        X