Is it possible to create a class, derived from the Strategy class and use it for all the customer strategies?
Let's say I have a common Property I would like to use in all the strategies, but I don't want to declare it each and every time.
Example:
public class myBaseStrategy: Strategy {
protected int _stopFactor1;
[Description("First Stop Factor")]
[GridCategory("Parameters")]
public int StopFactor1 {
get { return _stopFactor1; }
set { _stopFactor1 = Math.Max(1, value); }
}
}
public class myCustomStrategy: myBaseStrategy {
protected override void OnBarUpdate() {
if (StopFactor1>1) do this and that...
}
}
Thanks.

Comment