/**
         * @param index the actual index
         * @return true, if negative divergent
         */
        private bool CalculateNegativeDivergenceStrict(int index)
        {
            IRule refIsFalling  = new IsFallingRule(_indicator, _timeFrame);
            IRule otherIsRising = new IsRisingRule(_indicator, _timeFrame);

            return((refIsFalling.And(otherIsRising)).IsSatisfied(index));
        }
示例#2
0
        public void setUp()
        {
            IIndicator <decimal> indicator = new FixeddecimalIndicator(6, 5, 4, 3, 2, 1, 0, -1, 2, 3);

            rule = new IsFallingRule(indicator, 3);
        }