1) NinjaScript editor automatically creates inputs (with Wizard or anyway) with this example markup
(NAME is the 1st, ORDER is 2nd, GroupName is 3rd )
[Display(Name="Length of Moving Average", Order=1, GroupName="Parameters")] public bool emaLength { get; set; } [Display(Name="Line width", Order=1, GroupName="Parameters")] public int lineWidth { get; set; } .... ...
I ALWAYS RE-FORMAT my ninjascripts with this different order of parameters:
[Display(GroupName="Parameters", Order=1, Name="Length of Moving Average")] public bool emaLength { get; set; } [Display(GroupName="Parameters", Order=2, Name="Line width")] public int lineWidth { get; set; } ....
So, somewhere in NinjaEditor Settings, please make an option to set that order, instead of the existing structure.
2) it will be good, that having a separate:
[NinjaScriptProperty]
it was good, there was ability that NinjaTrader understand that property inline with:
[Display(GroupName="Parameters", NinjaScriptProperty=true/false ,........)]
so, inline will be a bit cleaner.
Comment