PDA

View Full Version : [Gui.Design.DisplayName("")];


blarouche
10-05-2009, 10:23 AM
Josh


With version 6.5 this code was working properly :

[Description("My Indicator")]
[Gui.Design.DisplayName(" *MyIndicator (Ind)")]


Now it seems it doesn't anymore...

What do I have to change ?


Bernard

whitmark
10-05-2009, 11:09 AM
Bernard,

Mine works fine in NT7 as it did in NT65, but I do not follow it with a semicolon like you have displayed in your post's subject line.

Whitmark

blarouche
10-05-2009, 11:17 AM
Whitmark

Thanks for the reply. I do not have a semicolon in my code but still doesn't work.

Yours is working not mine ?

bizarre


I was discussing with another user and his draw methods were not working but mine was working with the same code. There are things that are difficult to understand...sometimes



Bernard

whitmark
10-05-2009, 11:27 AM
Bernard,

What does not working look like? You do not see the parameter item in the parameter dialog? Might be best to modify a simple SMA indicator or crossover strategy, verify you're still having issues then post here for others to try to duplicate.

Whitmark

blarouche
10-05-2009, 11:38 AM
The way that I understand this is that in version 6.5 what the code :
[Gui.Design.DisplayName(" *MyIndicator ( IND)")]
was doing is that it put the name *MyIndicator in the upper indicators window list. So with the (*) I could place the name of my indicators first on the list.
In version 7.0 I don't get my indicator renamed in the upper indicators window.






Bernard

NinjaTrader_Josh
10-05-2009, 12:09 PM
In 7, the DisplayName concept has been removed. The indicator selection dialogue listings will just be done by file name.

eDanny
10-05-2009, 12:14 PM
In 7, the DisplayName concept has been removed. The indicator selection dialogue listings will just be done by file name.

Grrr, now how do we group our indicators at the top of the list? Why would a feature that everyone uses be removed? I really don't like scrolling through half of 559 indicator names to get to mine.

NinjaTrader_Josh
10-05-2009, 12:29 PM
Name it how you want to group it. The actual class name.

Say you wanted to group them all with a system prefix like ed.

Give all your file names ed_Stochastics, ed_RSI, etc. This was removed because there was too much confusion with people using exactly the same display names on numerous occasions and it becoming extremely difficult for support to isolate which is which. Thank you for understanding.

eDanny
10-05-2009, 12:33 PM
All my indicators begin with "I" and were at the top of the list. This is not good even though I can understand the confusion that was there.

cassb
11-12-2009, 09:45 AM
I had this same question and found this thread. It's not the external file name that's used in the indicator list, it's the class name. So how do you get your custom indicators to float to the top of the list then? I don't think you can use a non-alpha character as the first character of a class name... any other ideas?

Bryan

cassb
11-12-2009, 10:08 AM
I had this same question and found this thread. It's not the external file name that's used in the indicator list, it's the class name. So how do you get your custom indicators to float to the top of the list then? I don't think you can use a non-alpha character as the first character of a class name... any other ideas?

Bryan

Nevermind, I figured it out. You use this in your Initialize tag:

Name = "indicator list name"

NinjaTrader_Josh
11-12-2009, 10:14 AM
cassb,

Please try Name = "some string" in Initialize().

jdfagan
11-13-2009, 03:05 PM
In 7, the DisplayName concept has been removed. The indicator selection dialogue listings will just be done by file name.

I didn't see anything regarding this mentioned here -> http://www.ninjatrader-support2.com/vb/showthread.php?t=21016 - unless its part of the "Wrapper generator" which I wasn't sure what that really meant.

So I take it we can rip out all lines starting with [Gui.Design.DisplayName(.

What about [Description(? Is that still good for NT7 or should we get rid of this line too?

JD

NinjaTrader_Josh
11-13-2009, 03:24 PM
You can get rid of all DisplayName lines. Description lines are still valid. This was always unsupported properties and as such the documentation is for documented properties.