I have been trying to setup my strategy so that the Min, Max and increment values of a variable are always correct when using Strategy Analyzer. Here is the base code:
#region Variables
private int entrylong = 20; // Default EnterLong period
#endregion
#region Properties
[Description("Enter Long Period")]
[Category("Parameters")]
public int EntryLong
{
get { return entrylong; }
set { entrylong = Math.Max(1, value); }
}
#endregion
For example, how can I change above code so that the following values for a variable are initially present in Strategy Analyzer:
min: 1
max: 21
increment 2
Perhaps I need a Math.Min as well to accomplish this.
Thanks,
Tony

Comment