Пример #1
0
        public TradeStep(TradeStepType tradeStepType, BooleanRuleCombination combine = BooleanRuleCombination.OR)
        {
            this.tradeStepType = tradeStepType;
            this.CombineRules  = combine;

            this.State = TradeStepState.INACTIVE;

            rules = new List <TradeRule>();
        }
Пример #2
0
        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>();
        }