/**
         * @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));
        }
Exemplo n.º 2
0
        public void setUp()
        {
            IIndicator <decimal> indicator = new FixeddecimalIndicator(1, 2, 3, 4, 5, 6, 0, 1, 2, 3);

            rule = new IsRisingRule(indicator, 3);
        }