Esempio n. 1
0
 public void ComparesWithExternalDataKijunMinimum()
 {
     var ichimoku = new IchimokuKinkoHyo("Ichimoku", 9, 26, 26, 52, 26, 26);
     TestHelper.TestIndicator(
         ichimoku,
         "spy_with_ichimoku.csv",
         "KijunMinimum",
         (ind, expected) => Assert.AreEqual(expected, (double)((IchimokuKinkoHyo)ind).KijunMinimum.Current.Value)
         );
 }
Esempio n. 2
0
 public void ComparesWithExternalDataDelayedTenkanSenkouA()
 {
     var ichimoku = new IchimokuKinkoHyo("Ichimoku", 9, 26, 26, 52, 26, 26);
     TestHelper.TestIndicator(
         ichimoku,
         "spy_with_ichimoku.csv",
         "DelayedTenkanSenkouA",
         (ind, expected) => Assert.AreEqual(expected, (double)((IchimokuKinkoHyo)ind).DelayedTenkanSenkouA.Current.Value)
         );
 }
Esempio n. 3
0
        public void ResetsProperly()
        {
            var ichimoku = new IchimokuKinkoHyo("Ichimoku", 9, 26, 26, 52, 26, 26);

            TestHelper.TestIndicatorReset(ichimoku, "spy_with_ichimoku.csv");
        }