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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        178 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        99 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        131 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        210 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        186 views
        0 likes
        Last Post CarlTrading  
        Working...
        X