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 > Indicator Development

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

Reply
 
Thread Tools Display Modes
Old 05-19-2007, 09:19 AM   #1
higler
Senior Member
 
Join Date: Apr 2007
Location: Longmont, Colorado, USA
Posts: 294
Thanks: 4
Thanked 3 times in 3 posts
Default Easy way to rename a custom indicator?

Is there an easy way to rename custom indicators? I'd like all my custom indicators to be grouped together and I thought that I would rename them all with the same prefix. Thanks.
higler is offline  
Reply With Quote
Old 05-19-2007, 10:01 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

I would not call this easy but here is how I would do it:

- Open up the indicator you want to rename Tools > Edit NinjaScript > Indicator
- Within the Editor, right click and select "Save As..."
- Provide the new name
- In the Editor, change the Class name and the Display Name
- Compile
- Tools > Edit NinjaScript > Indicator select the old one and press the "Delete" button

** Make sure when you save the file as a new name that you change the class name and description. If you do not at least change the class name you will get compile errors.
NinjaTrader_Ray is offline  
Reply With Quote
Old 05-19-2007, 10:47 AM   #3
higler
Senior Member
 
Join Date: Apr 2007
Location: Longmont, Colorado, USA
Posts: 294
Thanks: 4
Thanked 3 times in 3 posts
Default

It's considerably easier than starting over and cutting and pasting which I was thinking of doing. Thanks for the help.
higler 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
Accessing value from custom indicator from strategy funk101 Strategy Development 12 08-19-2008 08:41 AM
Adding a second symbol to a custom indicator Folls Indicator Development 7 05-07-2007 02:06 AM
Using a custom indicator SuzyG Strategy Development 17 03-13-2007 10:59 AM
Can't access 1 bar ago in custom indicator AlohaBob Indicator Development 1 01-07-2007 02:42 AM
Easy Language Help amodies Automated Trading 0 10-17-2006 03:24 AM


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