Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninja crash - unhandled exception

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

    Ninja crash - unhandled exception

    description:
    any time I open the program, I cant continue as I get a windows Exception error (bellow)
    didnt help deleting workspace and removing the culprit strategies (cs files)
    obviously the compiled code is buggy.
    apart from reinstalling the NINJA I was wondering how can you guys help me?
    - I would like to fix the bug and continue rather than going back a few steps. so are you able to use team-viewer to see the system to try and find the bug ?
    (I cant publish the proprietary idea entire code 2500+ lines)



    I am not a professional coder. I have learned all I know from the forum and examples. for the last year I successfully built some strategies that actually work,

    yesterday, with my latest work in progress I integrated some code into my strategy.
    - EnumDisplayAttribyteExample
    - ChartCustomSidePanelExample
    (BTW I already have some Strategy BaseConverters..to manipulate the parameters Menu)

    at first I succeeded to make it work by integrating it to my code (strategy, though the example is an indicator) and adapting it to my needs,
    at some point when I included the line:

    "using System.Windows.Forms"
    and there was an error of ambiguity in the reference of :
    HorizontalAlignment.Center,

    the system thrown at me the bellow error.
    ************** Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
    at NinjaTrader.NinjaScript.NinjaScriptBase.TriggerCus tomEvent(Action`1 customEvent, Int32 barsSeriesIndex, Object state)
    at System.Windows.Forms.Timer.OnTick(EventArgs e)
    at System.Windows.Forms.Timer.TimerNativeWindow.WndPr oc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Last edited by dadarara; 09-19-2018, 04:46 AM.

    #2
    Hello dadarara,

    Thank you for your post.

    Please send a note to platformsupport[at]ninjatrader[dot]com with 'ATTN: Patrick H' in the subject line and a reference to this thread.

    We are available from 8:30 am to 6 pm EDT, Monday through Friday. Please provide a time window that works best for you and your telephone number in your email.

    I look forward to assisting you further.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by The_Sec, Yesterday, 03:37 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by vecnopus, Today, 06:15 AM
    0 responses
    1 view
    0 likes
    Last Post vecnopus  
    Started by Aviram Y, Today, 05:29 AM
    0 responses
    5 views
    0 likes
    Last Post Aviram Y  
    Started by quantismo, 04-17-2024, 05:13 PM
    3 responses
    27 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by ScottWalsh, 04-16-2024, 04:29 PM
    7 responses
    36 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X