PDA

View Full Version : error when create strategy


draime
12-07-2007, 04:16 AM
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
----------------------------------------

NinjaTrader_Dierk
12-07-2007, 04:28 AM
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/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en

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

draime
12-07-2007, 04:32 AM
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?

NinjaTrader_Dierk
12-07-2007, 04:34 AM
>> Should i try uninstall the actual .net?
correct

draime
12-07-2007, 05:00 AM
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.

NinjaTrader_Dierk
12-07-2007, 05:06 AM
Please try to uninstall .NET 2.0.

draime
12-07-2007, 05:31 AM
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.

NinjaTrader_Dierk
12-07-2007, 05:32 AM
Hmm ... this is 32 bit Vista and not 64 bit Vista no?

draime
12-07-2007, 05:39 AM
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)

NinjaTrader_Dierk
12-07-2007, 05:42 AM
Ok .. let's try something different. Please provide exact (!) steps on how you reproduce the issue so we could research.

draime
12-07-2007, 05:49 AM
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 ;)

NinjaTrader_Dierk
12-07-2007, 05:54 AM
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

NinjaTrader_Dierk
12-07-2007, 05:55 AM
Another one: Please make sure you have installed latest Windows .NET updates.

draime
12-07-2007, 06:26 AM
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.

NinjaTrader_Dierk
12-07-2007, 06:37 AM
What message do you get there?

draime
12-07-2007, 06:41 AM
uninstalled already, was a big error window saying some internal error happened and i should close program and restart, and send an email to support that will have atached some logs to help identify the problem.

draime
12-07-2007, 08:23 AM
i had to giveup :(. installed and uninstalled .net all day, all versions, updates, etc, etc.. all i was able to get is a damn headache :/