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 > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 07-21-2007, 01:45 AM   #1
grd974
Senior Member
 
Join Date: Apr 2007
Location: , ,
Posts: 124
Thanks: 0
Thanked 0 times in 0 posts
Default Compilation error

Editing a custom indicator named 'MarketDeph', I save it as 'MarketDepthW1' then when compiling, I get this message : 'The type or namespace name 'MarketDepthW1' does not exist in the namespace 'NinjaTrader.Data' (are you missing an assembly reference?)'.
Please, what can I do ?
grd974 is offline  
Reply With Quote
Old 07-21-2007, 04:13 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

Likely your installation is screwed up.
- please make sure you are on latest NT6R3
- just in case: you never should rename the NinjaScript files in Windows exporer, but only on the NinjaScript->Edit Indicator/Strategy box
- please try renaming back and see if this resolves the issue.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 07-21-2007, 06:29 AM   #3
grd974
Senior Member
 
Join Date: Apr 2007
Location: , ,
Posts: 124
Thanks: 0
Thanked 0 times in 0 posts
Default

1) I save back 'MarketDepthW1' indicator as 'MarketDepth'
2) I compile it and get the same error message
'The type or namespace name 'MarketDepthW1' does not exist in the namespace 'NinjaTrader.Data' (are you missing an assembly reference?)'.
3) I delete 'MarketDepthW1' with NT Editor
4) I edit and compile 'MarketDepth' --> compilation is Ok.

The problem remains that I no longer can rename 'OriginalName' indicator as 'NewName' indicator with NT Editor.
So I launched NinjaTrader.Install choosing 'uninstall' then again choosing 'install'.
1) I edit 'OriginalName' indicator and save as 'NewName'
2) I compile it and get the same error message 'The type or namespace name 'NewName' does not exist...'
3) I delete 'NewName' with NT Editor
4) I edit and compile 'OriginalName' --> compilation is Ok.

So NT editor persists in preventing me from saving files under new names. What else can I do ? Re-installing NT from scratch ?
grd974 is offline  
Reply With Quote
Old 07-21-2007, 11:53 PM   #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

Are you on NT6R3?
NinjaTrader_Dierk is offline  
Reply With Quote
Old 07-22-2007, 07:06 AM   #5
grd974
Senior Member
 
Join Date: Apr 2007
Location: , ,
Posts: 124
Thanks: 0
Thanked 0 times in 0 posts
Default

Yes I am.
By the way, here is how I incidentally got through my problem.
First, I have to say that every 30 minutes (sometimes less) of running my favourite 7 windows and 4 custom indicators simultaneously, my laptop screen freezes and I loose any control over my PC; the only way to regain control is to shut it off and have the battery going flat.
That happened yesterday when I was stranded with compilation problems.
After having restarted my computer, I launched NT and, as it sometimes does, it did not show up the usual red logo but instead the 'Installing NinjaTrader' window which appeared to be processing an installation for 2 or 3 minutes but never asked for the license key.
I guess, NT includes sort of check-out at starting up which has diagnosed that something was broken so that it went under some repairing.
Eversince when editing a file I can save it under a new name again.
Thanks NinjaTrader !
grd974 is offline  
Reply With Quote
Old 07-22-2007, 12:01 PM   #6
grd974
Senior Member
 
Join Date: Apr 2007
Location: , ,
Posts: 124
Thanks: 0
Thanked 0 times in 0 posts
Default

I had been using NT since it was solved a couple of hours ago then I had some rest. Tonight, as I start my laptop again and launch NT6, I am asked for the License Key that I type in. I find out that NT has been sort of re-installed for I have to create again my custom connexions and my former workspace has disappeared.
I undertake to edit 'MarketDepth1' and save it under 'MarketDepth2'; when I compile I get a bunch of irrelevant compilation errors about variables that are not mentioned at all in my code !
Still under NT Editor, I try to delete 'MarketDepth2' and get this message : " MarketDepth2 cannot be deleted. It is referenced by '.cs' ".

Very strange !
grd974 is offline  
Reply With Quote
Old 07-22-2007, 11:25 PM   #7
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 to square out these different issues:
- please hold off renaming your NinjaScript files for now. There is a bug which will be fixed with next update (available this or next week)
- your installation appears to be screwed up. Please:
* uninstall NT control panel
* backup directory <my documents>/bin/Custom to save any NS custom file
* manually remove directory <my documents>/bin/Custom
* reinstall NT from here:
http://www.ninjatrader-support.com/n...er.Install.exe

Please open up a different thread in case your experience further non-related problem (liek the lockup you mentioned below).

Thanks
NinjaTrader_Dierk is offline  
Reply With Quote
Old 07-23-2007, 07:20 AM   #8
grd974
Senior Member
 
Join Date: Apr 2007
Location: , ,
Posts: 124
Thanks: 0
Thanked 0 times in 0 posts
Default

Please, what do you exactly mean by 'Uninstall NT control panel' ? I can't see any such a choice among Control Panel menus.
What I usually do is executing NinjaTrader.Install and then opting for uninstallation. Is this still correct ?

Thanks for your help and I apologize for not opening a different thread.
Gerard
grd974 is offline  
Reply With Quote
Old 07-23-2007, 07:23 AM   #9
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

Sorry, should read: "uninstall NT via control panel"
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
Compilation error grd974 Indicator Development 2 07-01-2007 05:48 AM
Error on loading chart data: Native error 14 CJ888 Charting 8 07-20-2006 10:16 PM


All times are GMT -6. The time now is 05:10 AM.