public TradeStep(TradeStepType tradeStepType, BooleanRuleCombination combine = BooleanRuleCombination.OR) { this.tradeStepType = tradeStepType; this.CombineRules = combine; this.State = TradeStepState.INACTIVE; rules = new List <TradeRule>(); }
public TradeRule(string ruleName, BooleanRuleCombination combine, TradeRuleType ruleType = TradeRuleType.VALUE) { this.Name = ruleName; this.CombineRules = combine; this.RuleType = ruleType; this.triggerValue = false; conditions = new List <RuleCondition>(); }