예제 #1
0
        protected override void Initialize()
        {
            series5    = MarketData.GetSeries(TimeFrame.Minute5);
            series15   = MarketData.GetSeries(TimeFrame.Minute15);
            serieshour = MarketData.GetSeries(TimeFrame.Hour);

            kama     = Indicators.GetIndicator <kama1>(Period, FastPeriod, SlowPeriod);
            kama5    = Indicators.GetIndicator <kama1>(series5, Period, FastPeriod, SlowPeriod);
            kama15   = Indicators.GetIndicator <kama1>(series15, Period, FastPeriod, SlowPeriod);
            kamahour = Indicators.GetIndicator <kama1>(serieshour, Period, FastPeriod, SlowPeriod);
        }
예제 #2
0
        protected override void Initialize()
        {
            series5     = MarketData.GetSeries(TimeFrame.Minute5);
            series15    = MarketData.GetSeries(TimeFrame.Minute15);
            serieshour  = MarketData.GetSeries(TimeFrame.Hour);
            serieshour4 = MarketData.GetSeries(TimeFrame.Hour4);
            seriesdaily = MarketData.GetSeries(TimeFrame.Daily);

            //_kama = Indicators.GetIndicator<kama1>(Period, FastPeriod, SlowPeriod);
            //kma = Indicators.MovingAverage(MarketSeries.Close, Period, MovingAverageType.Triangular);

            kma      = Indicators.GetIndicator <kama1>(MarketSeries.Close, Period, FastPeriod, SlowPeriod);
            kma5     = Indicators.GetIndicator <kama1>(series5.Close, Period, FastPeriod, SlowPeriod);
            kma15    = Indicators.GetIndicator <kama1>(series15.Close, FastPeriod, SlowPeriod);
            kmahour  = Indicators.GetIndicator <kama1>(serieshour.Close, FastPeriod, SlowPeriod);
            kmahour4 = Indicators.GetIndicator <kama1>(serieshour4.Close, FastPeriod, SlowPeriod);
            kmadaily = Indicators.GetIndicator <kama1>(seriesdaily.Close, FastPeriod, SlowPeriod);
        }