Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
hiding indicator name on screen
Collapse
X
-
Hello ballboy11,
Thanks for your post.
Currently this is only possible by removing the text from the "Label" setting inside your indicators settings. We are tracking interest to have a feature to easily show/hide labels and we are tracking with the ticket ID SFT-3620. I've added a vote on your behalf.
Josh G.NinjaTrader Customer Service
-
-
-
Actually... there is a problem with this. It will depopulate the text in the indicator field in the user input screen. You can use something like:
Code:public override string DisplayName //Override display Name { get { return Name; } }
The above will at least show a simplified version of the label(w/o all of the settings), and will populate the text field in the user input screen.
Comment
-
Hello RFrosty,
Thanks for your note.
Your vote has been added to SFT-3620.
Let us know if we may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
- Likes 1
Comment
-
-
If this helps.
As an example I created a copy of the NT8 EMA indicator and added the code for what you want to chose to display or not the indicator name.
I've attached it as "EMA No Label NT8.zip" so you can view the code for yourself.
It's best to first make a copy of the indicator/s you want to edit the code for.
You can always delete the original once you know you've added the code correctly.
In OnStateChange I added:-
Note: I set this to "false" so saves unticking the box..(see below)Code:DisplayIndicatorName = false;
Just above OnBarUpdate I added:-
Code:public override string DisplayName { get { if (State == State.SetDefaults) return Name; else if (DisplayIndicatorName) return Name; else return ""; } }
In Properties I added:-
Note: you can chose the GroupName for where in the indicator dialog the tick box will appear. ie "Setup" and you can type in your own Display Name ie: "Show Indicator Name"Code:[NinjaScriptProperty] [Display(Name="Show Indicator Name", Description="Draw a symbol to mark change in direction", Order=1, GroupName="Setup")] public bool DisplayIndicatorName { get; set; }
The whole code with the additions in green:
Code:public class EMANoLabel : Indicator { private double constant1; private double constant2; protected override void OnStateChange() { if (State == State.SetDefaults) { Description = NinjaTrader.Custom.Resource.NinjaScriptIndicatorDe scriptionEMA; Name = "EMANoLabel"; IsOverlay = true; IsSuspendedWhileInactive = true; Period = 14; [B]///added Display name[/B] [COLOR=#27ae60][B]DisplayIndicatorName = false;[/B][/COLOR] AddPlot(Brushes.Goldenrod, NinjaTrader.Custom.Resource.NinjaScriptIndicatorNa meEMA); } else if (State == State.Configure) { constant1 = 2.0 / (1 + Period); constant2 = 1 - (2.0 / (1 + Period)); } } [B]///added Display Name[/B] [COLOR=#27ae60][B]public override string DisplayName { get { if (State == State.SetDefaults) return Name; else if (DisplayIndicatorName) return Name; else return ""; } }[/B][/COLOR] protected override void OnBarUpdate() { Value[0] = (CurrentBar == 0 ? Input[0] : Input[0] * constant1 + constant2 * Value[1]); } #region Properties [Range(1, int.MaxValue), NinjaScriptProperty] [Display(ResourceType = typeof(Custom.Resource), Name = "Period", GroupName = "NinjaScriptParameters", Order = 0)] public int Period { get; set; } [B]///Display Indicator Name[/B] [B][COLOR=#27ae60][NinjaScriptProperty][/COLOR] [COLOR=#27ae60][Display(Name="Show Indicator Name", Description="Draw a symbol to mark change in direction", Order=1, GroupName="Setup")] public bool DisplayIndicatorName { get; set; }[/COLOR][/B] #endregion }
You'll then get a box you can tick to display or untick to not display the indicator name on the chart:
- Likes 1
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
574 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
332 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
553 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|


Comment