NinjaTrader Support Forum  

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

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 07-23-2007, 09:27 PM   #1
maxpi
Senior Member
 
Join Date: Jun 2007
Posts: 151
Thanks: 0
Thanked 0 times in 0 posts
Default Strange error on compile

I get the following error on compiling an indicator that I start with the wizard, before adding any code. Should it compile ok at that point? I recall reading that compiling compiles all the indicators...

Description,File,Line,Column,
The namespace 'NinjaTrader.Indicator' already contains a definition for 'ATR',Indicator\AvgRange2.cs,25,15,

AvgRange2 is another indicator I tried to write by copying or renaming the ATR indicator that comes with NT.

I can't delete AvgRange2, I get another error message saying "AvgRange2 cannot be deleted. It is referenced by '.cs'"
Last edited by maxpi; 07-23-2007 at 09:38 PM.
maxpi is offline  
Reply With Quote
Old 07-23-2007, 11:23 PM   #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

NT6R3 holds bug which screws up your NinjaScript files in case you rename an indicator. Please hold off renaming indicators until NT6R4 will be available (the next few days).

To repair your installation, please:
- uninstall NT6 via control panel
- backup your NS script directory <my documents>/NinjaTrader/bin/Custom
- manually remove your NS script directory <my documents>/NinjaTrader/bin/Custom
- reinstall NT from here: http://www.ninjatrader-support.com/n...er.Install.exe

Sorry for the inconvenience.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 07-24-2007, 07:11 AM   #3
maxpi
Senior Member
 
Join Date: Jun 2007
Posts: 151
Thanks: 0
Thanked 0 times in 0 posts
Smile

Quote:
Originally Posted by NinjaTrader_Dierk View Post
NT6R3 holds bug which screws up your NinjaScript files in case you rename an indicator. Please hold off renaming indicators until NT6R4 will be available (the next few days).

To repair your installation, please:
- uninstall NT6 via control panel
- backup your NS script directory <my documents>/NinjaTrader/bin/Custom
- manually remove your NS script directory <my documents>/NinjaTrader/bin/Custom
- reinstall NT from here: www.ninjatrader-support.com/ninjatrader/nt6/NinjaTrader.Install.exe

Sorry for the inconvenience.
No problem, thanks for the help
maxpi is offline  
Reply With Quote
Old 07-24-2007, 07:17 AM   #4
maxpi
Senior Member
 
Join Date: Jun 2007
Posts: 151
Thanks: 0
Thanked 0 times in 0 posts
Default

That link to reinstall gives me an error 404 in German. I kept the downloaded file from the install, I can use it again I would think.
maxpi is offline  
Reply With Quote
Old 07-24-2007, 07:20 AM   #5
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

My apologies: www.ninjatrader-support.com/ninjatrader/nt6/setup.exe
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
Compile error with UserDefinedMethods NinjaTrader_Josh Indicator Development 6 06-06-2007 08:34 AM
Strange problem with Pats connection max1ci6 Connecting 1 03-02-2007 12:46 AM
Compile error with MIN and MAX variable assignment lewdfinger General Programming 2 02-10-2007 07:13 AM
MarketPosition.Flat compile error DarrylT Strategy Development 3 01-10-2007 05:49 AM
try to compile but Elmi Indicator Development 1 11-05-2006 01:40 AM


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