Esempio n. 1
0
        public Interfaces.Indicators.ExponentialMovingAverage ExponentialMovingAverage(int period, DataStream stream, TimeSpan barSize, Func <Bar, decimal> comp = null)
        {
            var nmodule = new ExponentialMovingAverage(period, barSize, stream, comp);

            return(_manager.Subscribe <ExponentialMovingAverage>(nmodule));
        }
Esempio n. 2
0
        public Interfaces.Indicators.ExponentialMovingAverage ExponentialMovingAverage(int period, DataStream stream)
        {
            var nmodule = new ExponentialMovingAverage(period, _manager.Agent.TimeFrame, stream);

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