Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Rename Indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Rename Indicator

    I created an indicator, MyIndicator.

    I created another indicator, MyIndicator2.

    When adding an indicator to a chart, I see MyIndicator and MyIndicator2 listed (along with the other standard indicators).

    I wanted to get rid of MyIndicator and rename MyIndicator2 to MyIndicator.

    Went into ..bin\Custom\Indicator folder

    Removed MyIndicator
    Renamed MyIndicator2 to MyIndicator

    When adding an indicator to a chart, I still see MyIndicator and MyIndicator2 listed. I expected to see my (new) MyIndicator listed (along with the other standard indicators).

    I rebooted NinjaTrader. Same results. I still see MyIndicator and MyIndicator2 listed. How do I force NinjaTrader to refresh its' list of indicators?

    #2
    To do what you wanted you should -

    - Delete the first indicator via Tools > Edit NinjaScript > Highlight and press "Delete"
    - Open the second indicator in the Editor and right click "Save As..", provide the name which will rename all necessary data in the script itself
    - Then repeat the 1st step to delete the 2nd indicator (not the new renamed copy)
    RayNinjaTrader Customer Service

    Comment


      #3
      Got an error message when trying to delete the first indicator.

      ..\bin\Custom\Indicator\MyIndicator.cs can not be deleted. This file is likely referenced by other NinjaScript files and these dependencies need to be removed first.

      This indicator is used in a custom strategy.

      Do I have to delete the custom strategy first before deleting the indicator?

      Comment


        #4
        You have to remove the reference from the strategy where you are calling this indicator.
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        628 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        359 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        562 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        568 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X