Пример #1
0
 protected override void OnStart()
 {
     prc = Indicators.GetIndicator<PriceChannels>(ChannelPeriods);
     zlMcd = Indicators.GetIndicator<ZeroLagMacd>(Source, LongCycle, ShortCycle, SignalPeriods, macdMovingAverageType);
     fastMA = Indicators.MovingAverage(Source, FastMA, FastSlowMAType);
     slowMA = Indicators.MovingAverage(Source, SlowMA, FastSlowMAType);
     wad = Indicators.WilliamsAccumulationDistribution(MarketSeries);
     frceIndex = Indicators.GetIndicator<ForceIndex>(ForceIndexPeriod, 0, 0);
     proc = Indicators.PriceROC(Source, 13);
 }
Пример #2
0
        protected override void OnStart()
        {
            bars = Source.Count;
            macd = Indicators.GetIndicator <ZeroLagMacd>(26, 12, 9);

            mm8   = Indicators.ExponentialMovingAverage(Source, 8);
            mm50  = Indicators.WeightedMovingAverage(Source, 50);
            mm150 = Indicators.WeightedMovingAverage(Source, 150);
            mm300 = Indicators.WeightedMovingAverage(Source, 300);

            Positions.Closed += PositionsOnClosed;
        }