示例#1
0
        public Interfaces.Indicators.MovingAverage MovingAverage(int period, MovingAverageType maType, DataStream stream, TimeSpan barSize, Func <Bar, decimal> comp = null)
        {
            var nmodule = new MovingAverage(period, barSize, maType, stream, comp);

            return(_manager.Subscribe <MovingAverage>(nmodule));
        }
示例#2
0
        public Interfaces.Indicators.MovingAverage MovingAverage(int period, MovingAverageType maType, DataStream stream)
        {
            var nmodule = new MovingAverage(period, maType, stream, _manager.Agent.TimeFrame);

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