NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM 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 > Indicator Development

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

Reply
 
Thread Tools Display Modes
Old 01-18-2009, 05:29 AM   #1
shawnj
Senior Member
 
Join Date: Jan 2005
Location: , ,
Posts: 218
Thanks: 0
Thanked 0 times in 0 posts
Default How to remove indicator from Indicators dialog

I've deleted some indicator source code (.cs) files from the Custom\Indicator directory but they continue to be displayed in the Indicators dialog. Since the source code is gone, I assume these removed indicators are cached somewhere. How can I get then to stop displaying in the Indicators dialog.

thanks,
shawnj
shawnj is offline  
Reply With Quote
Old 01-18-2009, 10:53 AM   #2
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,

I recommend restoring the .cs file from you recycle bin then removing the indicator via Tools>Edit>Indicator>select the indicator>Delete.
NinjaTrader_Ben is offline  
Reply With Quote
Old 01-19-2009, 09:07 AM   #3
shawnj
Senior Member
 
Join Date: Jan 2005
Location: , ,
Posts: 218
Thanks: 0
Thanked 0 times in 0 posts
Default

Unfortunately I perminately deleted the .cs files.

As a workaround, I've tried renaming an existing .cs file and all references to the indicator's class name to the deleted name and copying it into the Custom\Indicator directory. When I delete that file using "Tools>Edit>Indicator>select the indicator>Delete" it still exists in the Indicators Dialog. If I try to compile that renamed file then I get the following error:
"The namespace 'NinjaTrader.Indicator' already contains a definition for 'yourStubornIndicator' "

Surely I'm not the first idiot to make this mistake <g>. Could you point me a little deeper into the bowels of NT to fix this. Will uninstalling and reinstalling NT clean things up?

thanks,
shawnj
shawnj is offline  
Reply With Quote
Old 01-19-2009, 10:14 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

shawnj,

Please remove the renamed file you have. Press F5 to compile. Do you still get the error? It should compile and that should remove it from the list for you.
NinjaTrader_Josh is offline  
Reply With Quote
Old 01-20-2009, 03:15 PM   #5
shawnj
Senior Member
 
Join Date: Jan 2005
Location: , ,
Posts: 218
Thanks: 0
Thanked 0 times in 0 posts
Default

I fixed it.

Ok, I probably am the first idiot to do this. I apparently renamed the .cs files in Custom\Indictor from within Windows Explorer (instead of from the NT Editor) and as such the file names did not match up with the class names. The Indicator Dialog, of course, displays the class names not the file names. Removing these files then doing a compile on another (unrelated) file cleaned up the Indicators Dialog.

Sorry for the inconvenience.
Last edited by shawnj; 01-20-2009 at 03:29 PM.
shawnj is offline  
Reply With Quote
Old 01-20-2009, 03:26 PM   #6
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
Default

Hi shawnj, are you trying to get rid of third party indicators previously installed on your system?

The 'syncronization' you refer to is normally achieved with the compilation of your NinjaScript files.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 01-20-2009, 03:31 PM   #7
shawnj
Senior Member
 
Join Date: Jan 2005
Location: , ,
Posts: 218
Thanks: 0
Thanked 0 times in 0 posts
Default

Sorry Bertrand. I think I was editing that message when you replied. Please reread my last (edited) message. Sorry for the inconvenience.
shawnj is offline  
Reply With Quote
Old 01-20-2009, 03:35 PM   #8
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,421
Thanks: 252
Thanked 982 times in 964 posts
Default

No problem shawnj, great you figured it out.

Please never edit the names in the Windows explorer > do it directly in the NinjaScript editor to avoid this issue in the future.
Last edited by NinjaTrader_Bertrand; 01-20-2009 at 03:41 PM.
NinjaTrader_Bertrand 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
Speeding things up: If Indicators Dialog Applied, not need to recalculate on Closing NinjaCustomer Suggestions And Feedback 6 12-12-2008 09:56 PM
How to remove indicator Javier Miscellaneous Support 2 11-16-2008 10:41 AM
How do we reenable the Rollover dialog and New Version dialog. shawnj Miscellaneous Support 5 06-17-2008 04:41 PM
Indicators Dialog Polish shawnj Suggestions And Feedback 1 06-12-2008 03:43 PM
Indicator add - remove rgil65 Indicator Development 3 07-20-2007 10:02 AM


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