예제 #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));
        }