![]() |
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
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Apr 2007
Location: , ,
Posts: 124
Thanks: 0
Thanked 0 times in 0 posts
|
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 ? |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
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.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Apr 2007
Location: , ,
Posts: 124
Thanks: 0
Thanked 0 times in 0 posts
|
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 ? |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Are you on NT6R3?
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Apr 2007
Location: , ,
Posts: 124
Thanks: 0
Thanked 0 times in 0 posts
|
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 ! |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Apr 2007
Location: , ,
Posts: 124
Thanks: 0
Thanked 0 times in 0 posts
|
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 ! |
|
|
|
|
|
#7 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
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
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Apr 2007
Location: , ,
Posts: 124
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#9 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Sorry, should read: "uninstall NT via control panel"
Dierk
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |