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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        169 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        327 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        252 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        353 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        181 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X