NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 12-07-2007, 04:16 AM   #1
draime
Member
 
Join Date: Dec 2007
Posts: 47
Thanks: 0
Thanked 0 times in 0 posts
Default 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.

Quote:
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
----------------------------------------
draime is offline  
Reply With Quote
Old 12-07-2007, 04:28 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

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.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 12-07-2007, 04:32 AM   #3
draime
Member
 
Join Date: Dec 2007
Posts: 47
Thanks: 0
Thanked 0 times in 0 posts
Default

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?
draime is offline  
Reply With Quote
Old 12-07-2007, 04:34 AM   #4
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

>> Should i try uninstall the actual .net?
correct
NinjaTrader_Dierk is offline  
Reply With Quote
Old 12-07-2007, 05:00 AM   #5
draime
Member
 
Join Date: Dec 2007
Posts: 47
Thanks: 0
Thanked 0 times in 0 posts
Default

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.
draime is offline  
Reply With Quote
Old 12-07-2007, 05:06 AM   #6
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Please try to uninstall .NET 2.0.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 12-07-2007, 05:31 AM   #7
draime
Member
 
Join Date: Dec 2007
Posts: 47
Thanks: 0
Thanked 0 times in 0 posts
Default

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.
draime is offline  
Reply With Quote
Old 12-07-2007, 05:32 AM   #8
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Hmm ... this is 32 bit Vista and not 64 bit Vista no?
NinjaTrader_Dierk is offline  
Reply With Quote
Old 12-07-2007, 05:39 AM   #9
draime
Member
 
Join Date: Dec 2007
Posts: 47
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
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)
draime is offline  
Reply With Quote
Old 12-07-2007, 05:42 AM   #10
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Ok .. let's try something different. Please provide exact (!) steps on how you reproduce the issue so we could research.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 12-07-2007, 05:49 AM   #11
draime
Member
 
Join Date: Dec 2007
Posts: 47
Thanks: 0
Thanked 0 times in 0 posts
Default

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
draime is offline  
Reply With Quote
Old 12-07-2007, 05:54 AM   #12
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

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 is offline  
Reply With Quote
Old 12-07-2007, 05:55 AM   #13
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Another one: Please make sure you have installed latest Windows .NET updates.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 12-07-2007, 06:26 AM   #14
draime
Member
 
Join Date: Dec 2007
Posts: 47
Thanks: 0
Thanked 0 times in 0 posts
Default

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.
draime is offline  
Reply With Quote
Old 12-07-2007, 06:37 AM   #15
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

What message do you get there?
NinjaTrader_Dierk is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't create a Daily Chart? cassb Charting 3 12-07-2007 07:02 AM
How to create 2nd workspace, or more? Antraman Miscellaneous Support 8 11-04-2007 06:16 PM
Create New Strategy mgbloomfield ATM Strategies (Discretionary Trading) 1 09-14-2007 01:02 PM
Custom Indicator hangs NT on New Strategy Create zoltran Miscellaneous Support 4 06-20-2007 04:30 PM
Create Strategy Functionality SellUmHi Miscellaneous Support 1 01-04-2006 01:55 AM


All times are GMT -6. The time now is 05:48 PM.