Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 adeelshahzad, Today, 03:54 AM
        5 responses
        32 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by stafe, 04-15-2024, 08:34 PM
        7 responses
        32 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by merzo, 06-25-2023, 02:19 AM
        10 responses
        823 views
        1 like
        Last Post NinjaTrader_ChristopherJ  
        Started by frankthearm, Today, 09:08 AM
        5 responses
        20 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        43 views
        0 likes
        Last Post jeronymite  
        Working...
        X