[Description("Momentum Length (Long) - Value between 5 and 50")]
[GridCategory("\t\t\tEntry")]
[Gui.Design.DisplayName("\t\t\t\tMomentum Length (Long)")]
public int MOMLengthLong
{
get { return mOMLengthLong; }
set { mOMLengthLong = Math.Min(Math.Max(5,value),50); }
}
[Description("RSI Length (Long) - Value between 2 and 50")]
[GridCategory("\t\t\tEntry")]
[Gui.Design.DisplayName("\t\t\t\tRSI Length (Long)")]
public int RSILengthLong
{
get
{
int returnValue = 0;
if (rSILengthLong > MOMLengthLong)
{
returnValue = MOMLengthLong;
}
else
{
returnValue = rSILengthLong;
}
return returnValue;
}
set
{
Print(rSILengthLong+" "+MOMLengthLong);
if (rSILengthLong >= MOMLengthLong)
{
rSILengthLong = MOMLengthLong-1;
}
else
{
rSILengthLong = Math.Min(Math.Max(2,value),50);
}
}
}
Thanks,
Greg
Comment