Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

indicator naming

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

    indicator naming

    I was able to use underscores in my naming with ninja 7 via the paste from clipboard. How do I add an underscore to my indicator names in Ninja 8? Everything I have tried thus far doesn't work.

    #2
    Hello,

    Thank you for the post.

    Using any of the wizards in NT8 will remove underscores from names automatically, this would be expected. Underscores do not follow the standard C# naming guidelines for Classes and instead should be replaced with a Pascal Case name.



    You can find the standard C# naming guidelines here: https://msdn.microsoft.com/en-us/lib...(v=vs.71).aspx

    I have added a feature request to allow underscores in naming through the platform.



    I look forward to being of further assistance.

    Comment


      #3
      Originally posted by NinjaTrader_Jesse View Post
      Hello,

      Thank you for the post.

      Using any of the wizards in NT8 will remove underscores from names automatically, this would be expected. Underscores do not follow the standard C# naming guidelines for Classes and instead should be replaced with a Pascal Case name.



      You can find the standard C# naming guidelines here: https://msdn.microsoft.com/en-us/lib...(v=vs.71).aspx

      I have added a feature request to allow underscores in naming through the platform.



      I look forward to being of further assistance.
      This has been brought up before, and I repeat with the utmost vehemence, that regardless your owning the NT platform, it is not up to you to force us to use GUIDELINES.

      What you cite are guidelines by the programming language developers. it is reprehensible that you think that you can force your parochial opinions on all other developers. A guideline is NOT a ukase: it is a recommendation. Revert this.

      I am normally more polite that this when I address NT staff, but this is ridiculous, so I cannot apologize for my lack of politenss in this instance.

      ref: http://ninjatrader.com/support/forum...56615#poststop

      Comment


        #4
        Hi Antny,

        You will have to do this manually; that's what I do.
        Create your indicator and compile it. Close the indicator and then in Documents/NinjaTrader8/bin/Custom/Indicators find your indicator and add your underscores. Reopen the indicator in the editor and add the underscore in your Indicator name.Recompile the indicator again. You will now have an indicator with underscores in the name.

        There may be a better/easier way to do this but this works for me.

        Comment


          #5
          I agree with Konagam. While it has always been suggested to not use underscores in names, I have always done it with no undesirable effects. Because I have also not seen any problems using underscores in NT8, besides the problem of jumping through hoops to accomplish it, I see no reason to prohibit the usage.
          eDanny
          NinjaTrader Ecosystem Vendor - Integrity Traders

          Comment


            #6
            Originally posted by NinjaTrader_Jesse View Post
            Hello,

            Thank you for the post.

            Using any of the wizards in NT8 will remove underscores from names automatically, this would be expected. Underscores do not follow the standard C# naming guidelines for Classes and instead should be replaced with a Pascal Case name.



            You can find the standard C# naming guidelines here: https://msdn.microsoft.com/en-us/lib...(v=vs.71).aspx

            I have added a feature request to allow underscores in naming through the platform.



            I look forward to being of further assistance.
            I was not using the wizard. I was actually just saving a newer version of my indicator to work on some new features. The reason this change became obvious is due to previously being able to add underscores to the name. This was something the devs had to remove on purpose. Thank you for adding this to the feature suggestions.

            Comment


              #7
              Originally posted by Zeos6 View Post
              Hi Antny,

              You will have to do this manually; that's what I do.
              Create your indicator and compile it. Close the indicator and then in Documents/NinjaTrader8/bin/Custom/Indicators find your indicator and add your underscores. Reopen the indicator in the editor and add the underscore in your Indicator name.Recompile the indicator again. You will now have an indicator with underscores in the name.

              There may be a better/easier way to do this but this works for me.
              Ah! i had not even thought to try this. Thanks for the suggestion!

              Comment


                #8
                No problem. Bit of a work around but it works.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                648 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                369 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                108 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                572 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                573 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X