Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Changing indicator name ?

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

    Changing indicator name ?

    I imported a custom Macd indicator . I wanted to make some calculation changes ( which
    I did with no problem ) ,but trying to change the name as well as the calculation causes an error . Is there some general reason why changing the name would cause a problem .
    Thanks

    #2
    Hello T2020,

    When changing the name be sure to Right Click > Save As > Give it a new name.

    Changing the name of the class is not enough, as all the NinjaScript generated code will not compile correctly.

    If you continue to see issues here, please let us know any error messages you're getting.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_RyanM View Post
      Hello T2020,

      When changing the name be sure to Right Click > Save As > Give it a new name.

      Changing the name of the class is not enough, as all the NinjaScript generated code will not compile correctly.

      If you continue to see issues here, please let us know any error messages you're getting.
      When changing the name be sure to Right Click > Save As > Give it a new name.
      I did do that ....
      Changing the name of the class is not enough, as all the NinjaScript generated code will not compile correctly.
      I don't understand "Class " ,could you explain that a bit ?

      Thanks

      Comment


        #4
        I wouldn't worry about class too much. You can see the class declaration near the top:
        public class indicatorName : Indicator
        {

        This is the area where I suspected you had changed the name.

        You changed the name in the right place - what error messages are you getting as a result of this name change?
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_RyanM View Post
          I wouldn't worry about class too much. You can see the class declaration near the top:
          public class indicatorName : Indicator
          {

          This is the area where I suspected you had changed the name.

          You changed the name in the right place - what error messages are you getting as a result of this name change?
          Here's the error I get just by changing the name and after I try to compile it .
          Attached Files

          Comment


            #6
            Unfortunately it's not clear from the screenshot what the error message is. You would need to expand the error column to view the whole message.

            Generally you should be OK renaming indicators, unless they use types that are unique per namespace. Enums, for example, must be unique per namespace.
            Ryan M.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            607 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            353 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
            560 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            561 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X