An indicator which includes the below code displays the parameters in an incorrect sequence (i.e. the LongPeriod is displayed first and the ShortPeriod is displayed second). Please advise how to change the below code to correct this issue.
Also, please advise how the below code can be made more concise.
#region Properties [Range(1, int.MaxValue)] [NinjaScriptProperty] [Display(Name="ShortPeriod", Description="Period for short-term simple moving average", Order=0, GroupName="Parameters")] public int ShortPeriod { get; set; } [Range(1, int.MaxValue)] [NinjaScriptProperty] [Display(Name="LongPeriod", Description="Period for long-term simple moving average", Order=1, GroupName="Parameters")] public int LongPeriod { get; set; } [Browsable(false)] [XmlIgnore] public Series<double> ShortSma { get { return Values[0]; } } [Browsable(false)] [XmlIgnore] public Series<double> LongSma { get { return Values[1]; } } #endregion
Shannon
Comment