I'm essentially wanting my Strategy to allow the change of the number of bars that it's referencing.
So I have a variable:
int numbars = 7; // for 7 bars of data, that can be changed via the GUI PeriodType type = PeriodType.Day; // set the period type to Day
Add(type,numbars);
In the properties section I have something like:
[Description("")]
[Category("Parameters")]
public PeriodType Type
{
get { return type; }
set { type = value; }
}
[Description("")]
[Category("Parameters")]
public int NumBars
{
get { return numbars; }
set { numbars = value; }
}
Is this something that can be done?
Thanks
Matt

Comment