protected override void Initialize() { _rocLong = Indicators.PriceROC(Source, RocPeriodLong); _rocShort = Indicators.PriceROC(Source, RocPeriodShort); _rocSum = CreateDataSeries(); _maofRoc = Indicators.WeightedMovingAverage(_rocSum, WmaPeriod); }
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); }
protected override void Initialize() { _priceRoc1 = Indicators.PriceROC(Source, X1); _priceRoc2 = Indicators.PriceROC(Source, X2); _priceRoc3 = Indicators.PriceROC(Source, X3); _priceRoc4 = Indicators.PriceROC(Source, X4); _movingAverage1 = Indicators.MovingAverage(_priceRoc1.Result, AVG1, MAType); _movingAverage2 = Indicators.MovingAverage(_priceRoc2.Result, AVG2, MAType); _movingAverage3 = Indicators.MovingAverage(_priceRoc3.Result, AVG3, MAType); _movingAverage4 = Indicators.MovingAverage(_priceRoc4.Result, AVG4, MAType); ema = Indicators.ExponentialMovingAverage(Result, 9); }