示例#1
0
        public void fisher()
        {
            FisherIndicator fisher = new FisherIndicator(series);

            Assert.AreEqual(fisher.GetValue(10), 0.6448642008177116420314264928M);
            Assert.AreEqual(fisher.GetValue(11), 0.8361770425706643499100727090M);
            Assert.AreEqual(fisher.GetValue(12), 0.9936697984965750963904983708M);
            Assert.AreEqual(fisher.GetValue(13), 0.8324807235379147531568932612M);
            Assert.AreEqual(fisher.GetValue(14), 0.5026313552592727129346101350M);
            Assert.AreEqual(fisher.GetValue(15), 0.0649251620461506571911577543M);
        }
示例#2
0
        public void Fisher()
        {
            var indicator = new MedianPriceIndicator(_data);
            var fisher    = new FisherIndicator(indicator);

            TaTestsUtils.AssertDecimalEquals(fisher.GetValue(10), 0.6448642008177138);
            TaTestsUtils.AssertDecimalEquals(fisher.GetValue(11), 0.8361770425706673);
            TaTestsUtils.AssertDecimalEquals(fisher.GetValue(12), 0.9936697984965788);
            TaTestsUtils.AssertDecimalEquals(fisher.GetValue(13), 0.8324807235379169);
            TaTestsUtils.AssertDecimalEquals(fisher.GetValue(14), 0.5026313552592737);
            TaTestsUtils.AssertDecimalEquals(fisher.GetValue(15), 0.06492516204615063);
        }