my previous NInja 7 code was something like this
#region Properties
[Description("balh")]
[GridCategory("Parameters")]
public int Aggression
{
get { return aggression; }
set { aggression = Math.Max(1, Math.Min(3,value)); }
}
It doesnt compile in Ninja 8 like that.
So i changed it to
[Range(1, 3)]
[NinjaScriptProperty]
[Display(Name="Aggression", Description="Blah", Order=1, GroupName="Parameters")]
public int aggression
{ get; set; }
i still get that error. This is common with almost all the properties defined in the indicator. Would appriciate any help.
Thanks!

Comment