コード例 #1
0
        public Interfaces.Indicators.WeightedMovingAverage WeightedMovingAverage(int period, DataStream stream, TimeSpan barSize, Func <Bar, decimal> comp = null)
        {
            var nmodule = new WeightedMovingAverage(period, barSize, stream, comp);

            return(_manager.Subscribe <WeightedMovingAverage>(nmodule));
        }
コード例 #2
0
        public Interfaces.Indicators.WeightedMovingAverage WeightedMovingAverage(int period, DataStream stream)
        {
            var nmodule = new WeightedMovingAverage(period, _manager.Agent.TimeFrame, stream);

            return(_manager.Subscribe <WeightedMovingAverage>(nmodule));
        }