NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support

Miscellaneous Support Miscellaneous support issues.

Reply
 
Thread Tools Display Modes
Old 05-15-2012, 03:43 PM   #1
anachronist
Senior Member
 
Join Date: Jul 2008
Posts: 271
Thanks: 4
Thanked 7 times in 7 posts
Default Removing strategies with multiple cross references

I imported a package written by someone else, and it consists of multiple user-defined-methods strategy files. Now I want to remove them but I can't. If I try to remove one of them, I get an error message "'xxxx.cs' can't be deleted. It is referenced by 'yyyy.cs'. Please remove this dependency before deleting the file.

Is there an easier way to do this than to individually comment out the contents of all 8 scripts and then delete them?

-Alex
anachronist is offline  
Reply With Quote
Old 05-15-2012, 03:56 PM   #2
NinjaTrader_PatrickH
NinjaTrader Customer Service
 
NinjaTrader_PatrickH's Avatar
 
Join Date: Jul 2011
Location: Denver, CO, USA
Posts: 1,866
Thanks: 128
Thanked 211 times in 205 posts
Default

Hello Alex,

Thank you for your post.

You can remove the NinjaScript files manually if you wish.
  • First shut down NinjaTrader and then go to the following directory on your PC: My Documents\NinjaTrader 7\bin\Custom\Indicator
  • From here you can delete the .CS files that you do not wish to have.
  • Once complete, restart NinjaTrader and then go to Tools > Edit NinjaScript > Indicator > select and indicator > OK > and then press F5 to compile all NinjaScript files once the NinjaScript Editor window opens.
Please let me know if you receive any errors after compiling.
NinjaTrader_PatrickH is online now  
Reply With Quote
Old 05-15-2012, 03:59 PM   #3
anachronist
Senior Member
 
Join Date: Jul 2008
Posts: 271
Thanks: 4
Thanked 7 times in 7 posts
Default

Thanks that worked. I was about to try that myself but I wasn't sure if manually deleting the .cs files would damage anything.
anachronist is offline  
Reply With Quote
Old 05-15-2012, 05:50 PM   #4
NinjaTrader_PatrickH
NinjaTrader Customer Service
 
NinjaTrader_PatrickH's Avatar
 
Join Date: Jul 2011
Location: Denver, CO, USA
Posts: 1,866
Thanks: 128
Thanked 211 times in 205 posts
Default

Hello Alex,

You can run into items when you delete the .CS files with @ symbols in the name, these are NinjaTrader preloaded indicators and must not be deleted.

Please let me know if I may be of further assistance.
NinjaTrader_PatrickH is online now  
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
Removing all custom strategies Trader.Jon General Programming 1 03-12-2011 10:44 AM
Enable/Disable Global Cross Hair CursorFor Multiple Windows tickleboy Charting 1 03-05-2011 02:54 PM
Removing horizontal lines, without removing indicator jokujoku General Programming 2 11-17-2010 02:32 PM
Removing Indicators and Strategies kenb2004 Strategy Development 1 09-30-2010 08:11 AM
Cross hair lines remain on chart after removing mouse Pip Ventures Charting 1 09-12-2008 11:37 AM


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