public void getValue()
        {
            ThreeWhiteSoldiersIndicator tws = new ThreeWhiteSoldiersIndicator(series, 3, 0.1M);

            Assert.IsFalse(tws.GetValue(0));
            Assert.IsFalse(tws.GetValue(1));
            Assert.IsFalse(tws.GetValue(2));
            Assert.IsFalse(tws.GetValue(3));
            Assert.IsFalse(tws.GetValue(4));
            Assert.IsTrue(tws.GetValue(5));
            Assert.IsFalse(tws.GetValue(6));
            Assert.IsFalse(tws.GetValue(7));
        }
示例#2
0
        public void GetValue()
        {
            var tws = new ThreeWhiteSoldiersIndicator(_series, 3, Decimal.ValueOf("0.1"));

            Assert.IsFalse(tws.GetValue(0));
            Assert.IsFalse(tws.GetValue(1));
            Assert.IsFalse(tws.GetValue(2));
            Assert.IsFalse(tws.GetValue(3));
            Assert.IsFalse(tws.GetValue(4));
            Assert.IsTrue(tws.GetValue(5));
            Assert.IsFalse(tws.GetValue(6));
            Assert.IsFalse(tws.GetValue(7));
        }