Пример #1
0
        public virtual void ResetsProperly()
        {
            var indicator = CreateIndicator();

            if (indicator is IndicatorBase <IndicatorDataPoint> )
            {
                TestHelper.TestIndicatorReset(indicator as IndicatorBase <IndicatorDataPoint>, TestFileName);
            }
            else if (indicator is IndicatorBase <TradeBar> )
            {
                TestHelper.TestIndicatorReset(indicator as IndicatorBase <TradeBar>, TestFileName);
            }
            else
            {
                throw new NotSupportedException("ResetsProperly: Unsupported indicator data type: " + typeof(T));
            }
        }
        public void ResetsProperly()
        {
            var logr = new LogReturn(14);

            TestHelper.TestIndicatorReset(logr, "spy_logr14.txt");
        }
        public void ResetsProperly()
        {
            var indicator = new NormalizedAverageTrueRange(5);

            TestHelper.TestIndicatorReset(indicator, "spy_natr.txt");
        }
        public void ResetsProperly()
        {
            var psar = new ParabolicStopAndReverse();

            TestHelper.TestIndicatorReset(psar, "spy_parabolic_SAR.txt");
        }
Пример #5
0
        public void ResetsProperly()
        {
            var cmo = new ChandeMomentumOscillator("CMO", 5);

            TestHelper.TestIndicatorReset(cmo, "spy_cmo.txt");
        }
        public void ResetsProperly()
        {
            var dema = new DoubleExponentialMovingAverage("DEMA", 5);

            TestHelper.TestIndicatorReset(dema, "spy_dema.txt");
        }
        public void ResetsProperly()
        {
            var ichimoku = new IchimokuKinkoHyo("Ichimoku", 9, 26, 26, 52, 26, 26);

            TestHelper.TestIndicatorReset(ichimoku, "spy_with_ichimoku.csv");
        }
        public void ResetsProperly()
        {
            var indicator = new T3MovingAverage(5, 1);

            TestHelper.TestIndicatorReset(indicator, "spy_t3.txt");
        }