In the code below :
(in the #region Properties section)
[NinjaScriptProperty]
[Range(0, 1)]
[Display(Name="Enter2", Order=12, GroupName="Parameters")]
public int Enter2{
get { return enter2; }
set { enter2 = value; }
}
The Range dosent seem to work properly when running the strategy analyzer (optimization parameter), I am expecting 0;1;1 i.e. a value between 0 and 1 to be used by the optimizer but it shows as 1;1;1 (this is before any optimization takes place). It looks like the strategy analyzer "ignores" the Range(0,1) setting? I have tried setting the enter2 variable and not setting it but its no different.
Am I doing something wrong?
Thanks
Comment