I noticed that, event if you order your parameters correctly in the properties section, they are not in the attended order when the label display on the panel.
Lets consider this declaration:
#region Properties
[Range(1, int.MaxValue), NinjaScriptProperty]
[Display(ResourceType = typeof(Custom.Resource), Name = "Min Period", GroupName = "NinjaScriptParameters", Order = 0)]
public int MinPeriod
{ get; set; }
[Range(1, int.MaxValue), NinjaScriptProperty]
[Display(ResourceType = typeof(Custom.Resource), Name = "Middle Period", GroupName = "NinjaScriptParameters", Order = 1)]
public int MiddlePeriod
{ get; set; }
[Range(1, int.MaxValue), NinjaScriptProperty]
[Display(ResourceType = typeof(Custom.Resource), Name = "Max Period", GroupName = "NinjaScriptParameters", Order = 2)]
public int MaxPeriod
{ get; set; }
[Range(1, int.MaxValue), NinjaScriptProperty]
[Display(ResourceType = typeof(Custom.Resource), Name = "EMA Period", GroupName = "NinjaScriptParameters", Order = 3)]
public int PeriodEMA
{ get; set; }
#endregion
MinPeriod = 13;
MiddlePeriod = 21;
MaxPeriod = 34;
PeriodEMA = 3;
Did I miss something ?

Comment