PDA

View Full Version : Is it possible to define sub category or user define category for parameters


theperm
05-15-2007, 12:23 PM
Is it possible to define sub category or user define category for parameters? The idea is to make parameter groupings so parameters are more readable.

NinjaTrader_Ray
05-15-2007, 12:38 PM
Under the "Properties" section of the strategy, you will see all of your parameter properties.

You will see:

[Category("Parameters")]

above each property. Just change "Paramters" to the name of the category you wish to see.

theperm
05-15-2007, 02:10 PM
I already tried that and all it does is make the parameter disappear.

NinjaTrader_Ray
05-15-2007, 02:23 PM
I would double check your code. I just tested here and it works fine.

I have something like this.


[Description("")]
[Category("Test")]
public int MyInput0
{
get { return myInput0; }
set { myInput0 = Math.Max(1, value); }
}

theperm
05-15-2007, 02:56 PM
It works in indicators but not on my strategy. Can you check that?

NinjaTrader_Ray
05-16-2007, 07:57 AM
My apologies, this should not work for strategies. Our policy is to maintain inputs under the "Parameters" category.

theperm
05-16-2007, 08:01 AM
Ah come on. That makes no sense at all. I have strategies with lots of inputs as im sure plenty others do.

Whats the reasoning behind this policy? To frustrate your users?

Besides its only a visual thing. People should have a choice.

NinjaTrader_Ray
05-16-2007, 08:48 AM
Technical limitiation at this time.