Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
indicator naming
Collapse
X
-
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.Originally posted by NinjaTrader_Jesse View PostHello,
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.
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
-
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
-
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.
Comment
-
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.Originally posted by NinjaTrader_Jesse View PostHello,
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
-
Ah! i had not even thought to try this. Thanks for the suggestion!Originally posted by Zeos6 View PostHi 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
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
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
369 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
572 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment