Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
That's what I would recommend for your own personal use. The original author has contacted me to upgrade his version to a better one, one that hopefully doesn't use inherited classes. When he does that, I will pull mine down so there aren't all these versions out there.
How can I accomplish not having the indicator label print on the chart but still have the indicator name appear in the Configured list? When I blank out the indicator label in Properties, the indicator name in the Configured list is also blanked out.
I have several custom indicators that behave this way, so if there's a generic fix, I would appreciate knowing what edits to put in place. I am a neophyte/hack, so please include exactly what code and where to add or change.
Yeah, I haven't found a way to programmatically make it like you want. Only thing to do is just override DisplayName and return an abbreviated string that you can tell what it is and won't include all the crap that Ninjatrader puts on the chart.
Add it anywhere, just like another method but change "Shortened indicator name to something meaninful:
And/or the user can just remove the label, save as a template and it will always load like that. (When you do that it doesn't remove the indicator name on the left side. That's what I do and it's fine.)
That's the way it works on most of my custom indicators, but I have several (I do save a template with the label blanked out) where blanking out the label name in Properties blanks out the indicator name as well in the Configured list.
That's the way it works on most of my custom indicators, but I have several (I do save a template with the label blanked out) where blanking out the label name in Properties blanks out the indicator name as well in the Configured list.
If you think that's happening, you should ask Ninjatrader support about that then.
How can I accomplish not having the indicator label print on the chart but still have the indicator name appear in the Configured list? When I blank out the indicator label in Properties, the indicator name in the Configured list is also blanked out.
I have several custom indicators that behave this way, so if there's a generic fix, I would appreciate knowing what edits to put in place. I am a neophyte/hack, so please include exactly what code and where to add or change.
Hi
In order to have the indicator name appear in the indicator list, you set the name under State.SetDefaults, and you remove the name from the top of the chart under State.DataLoaded:
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Name = "BMTCollectiveMA"; //Sets the name in the list of indicators - see State == State.DataLoaded for removing from chart
}
else if (State == State.DataLoaded) //See State == State.SetDefaults to set name so it appears in indicator list
{
Name = "";
}
Trading: 6C (Low Margin,) 6E, CL, GC, ES and Maybe DX for smaller tick value
Posts: 1,394 since May 2011
Thanks Given: 1,719
Thanks Received: 1,020
GeorgeW
Hi
In order to have the indicator name appear in the indicator list, you set the name under State.SetDefaults, and you remove the name from the top of the chart under State.DataLoaded:
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Name = "BMTCollectiveMA"; //Sets the name in the list of indicators - see State == State.DataLoaded for removing from chart
}
else if (State == State.DataLoaded) //See State == State.SetDefaults to set name so it appears in indicator list
{
Name = "";
}
The method above should work. But the fact you are messing with blanking the indicator name means you are likely using the original PriceActionSwing that can put a lot of stress on the system. The newer version using much less processing power: