Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

error when create strategy

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

    error when create strategy

    Hi.

    Sorry for my first post here beeing some error report.

    I am having a problem with Condition builder. I wanted to play a bit with cerating a new strategy (using wizard), and when i select various conditions, like Price > High, or Open, or Close and some others i get an Undandled exception error (Object reference not set to an instance of an object) and ask me to continue or quit.

    If i select to continue the Bars ago and Offeset values are grey, and can not be edited. However, other conditions seems to be ok.

    I am using using Vista and they have build in .NET.

    Hope you can help, i think your software is very cool and would like to play a bit with strategies.

    There are some details of the error below, same as i see it when i click that details box. I paste it below. Is just a part of it, as full is more then forum allow to post.

    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
    at NinjaTrader.Strategy.StrategyWizardPropertyDescrip tor.get_ComponentType()
    at System.ComponentModel.PropertyDescriptor.GetTypeFr omName(String typeName)
    at System.ComponentModel.PropertyDescriptor.GetEditor (Type editorBaseType)
    at System.Windows.Forms.PropertyGridInternal.Property DescriptorGridEntry.get_UITypeEditor()
    at System.Windows.Forms.PropertyGridInternal.GridEntr y.get_Flags()
    at System.Windows.Forms.PropertyGridInternal.Property DescriptorGridEntry.get_NeedsDropDownButton()
    at System.Windows.Forms.PropertyGridInternal.Property GridView.SelectRow(Int32 row)
    at System.Windows.Forms.PropertyGridInternal.Property GridView.SelectGridEntry(GridEntry gridEntry, Boolean fPageIn)
    at System.Windows.Forms.PropertyGridInternal.Property GridView.GridPositionData.Restore(PropertyGridView gridView)
    at System.Windows.Forms.PropertyGridInternal.Property GridView.Refresh(Boolean fullRefresh, Int32 rowStart, Int32 rowEnd)
    at System.Windows.Forms.PropertyGridInternal.Property GridView.Refresh()
    at System.Windows.Forms.PropertyGrid.Refresh(Boolean clearCached)
    at System.Windows.Forms.PropertyGrid.set_SelectedObje cts(Object[] value)
    at System.Windows.Forms.PropertyGrid.set_SelectedObje ct(Object value)
    at NinjaTrader.Strategy.StrategyWizardControl.OnNodeS elected(Object sender, TreeViewEventArgs e)
    at System.Windows.Forms.TreeView.OnAfterSelect(TreeVi ewEventArgs e)
    at System.Windows.Forms.TreeView.TvnSelected(NMTREEVI EW* nmtv)
    at System.Windows.Forms.TreeView.WmNotify(Message& m)
    at System.Windows.Forms.TreeView.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)


    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1378 (REDBITSB2.050727-1300)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    NinjaTrader
    Assembly Version: 6.0.1000.6
    Win32 Version: 6.0.1000.6
    CodeBase: file:///C:/Program%20Files/NinjaTrader%206/bin/NinjaTrader.exe
    ----------------------------------------
    NinjaTrader.Core
    Assembly Version: 6.0.1000.6
    Win32 Version: 6.0.1000.6
    CodeBase: file:///C:/Program%20Files/NinjaTrader%206/bin/NinjaTrader.Core.DLL
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1378 (REDBITSB2.050727-1300)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1378 (REDBITSB2.050727-1300)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1378 (REDBITSB2.050727-1300)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1378 (REDBITSB2.050727-1300)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    WilsonORMapper
    Assembly Version: 4.2.2.0
    Win32 Version: 4.2.2.0
    CodeBase: file:///C:/Program%20Files/NinjaTrader%206/bin/WilsonORMapper.DLL
    ----------------------------------------
    System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1378 (REDBITSB2.050727-1300)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------
    System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1378 (REDBITSB2.050727-1300)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Management
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1378 (REDBITSB2.050727-1300)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
    ----------------------------------------
    h43elw1o
    Assembly Version: 6.0.1000.6
    Win32 Version: 2.0.50727.1378 (REDBITSB2.050727-1300)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    SMTP.Net
    Assembly Version: 3.0.1.0
    Win32 Version: 3.0.1.0
    CodeBase: file:///C:/Program%20Files/NinjaTrader%206/bin/SMTP.Net.DLL
    ----------------------------------------
    NinjaTrader.Custom
    Assembly Version: 6.0.1000.6
    Win32 Version: 6.0.1000.6
    CodeBase: file:///C:/Users/Marius/Documents/NinjaTrader%206/bin/Custom/NinjaTrader.Custom.dll
    ----------------------------------------
    NinjaTrader.Vendor
    Assembly Version: 6.0.0.1
    Win32 Version: 6.0.0.1
    CodeBase: file:///C:/Users/Marius/Documents/NinjaTrader%206/bin/Custom/NinjaTrader.Vendor.dll
    ----------------------------------------

    #2
    This looks like a .NET runtime issue. Please make sure you have installed latest .NET 2.0 runtime from here: http://www.microsoft.com/downloads/d...displaylang=en

    Worst case you would need to go through a uninstall/reinstall from link above.

    Comment


      #3
      thanks for reply.

      I tried to before, but it say that the product (.net 2.0) is already installed as part of the operating system.

      Should i try uninstall the actual .net?

      Comment


        #4
        >> Should i try uninstall the actual .net?
        correct

        Comment


          #5
          No help unfortunately.

          I uninstalled the .net 3.2 that was showing in my control panel as beeing installed, but if i try to install net 2.0 it still tells me that is already instaleld as part of operating system.

          Comment


            #6
            Please try to uninstall .NET 2.0.

            Comment


              #7
              i would love to but i can't seems to find it. It does not show as a program in add/remove programs. It is like is already build in somehow, and nt visible to user.

              Comment


                #8
                Hmm ... this is 32 bit Vista and not 64 bit Vista no?

                Comment


                  #9
                  Originally posted by NinjaTrader_Dierk View Post
                  Hmm ... this is 32 bit Vista and not 64 bit Vista no?
                  Is 32, nothing really fancy. Vista Home Premium, 6.0.6000 Build 6000

                  Came already installed on the laptop (i wish i had a choice)

                  Comment


                    #10
                    Ok .. let's try something different. Please provide exact (!) steps on how you reproduce the issue so we could research.

                    Comment


                      #11
                      Open ninjatrader.

                      Tools> New Ninja Script > Strategy

                      On the wizard just click Next till see the Conditions and Actions window.

                      Click Add for Set1, click on price data and then click on Open or Close

                      At that exact moment i get the error window

                      I am not sure you will have same problem, unless you have same Vista.. i have to say i hate it

                      Comment


                        #12
                        Ok, let's try this:
                        a) we are about the release a new NT6R7 (within the next few days). Please let us know if issue will persist with that release.
                        b) we will test this new NT6R7 on our Vista machines here

                        Comment


                          #13
                          Another one: Please make sure you have installed latest Windows .NET updates.

                          Comment


                            #14
                            i have all updates windows prompt me to install.

                            on the other hand, i tried with ninjatrader 6.5 beta too. The error still persist, just that is another kind of message.

                            Comment


                              #15
                              What message do you get there?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              648 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              369 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              108 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              572 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              573 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X