Example #1
0
        Interfaces.Indicators.AverageDirectionalIndex IndicatorFactory.AverageDirectionalIndex(int period, DataStream stream, TimeSpan barSize)
        {
            var nmodule = new DirectionalIndex(period, stream, barSize);

            return(_manager.Subscribe <DirectionalIndex>(nmodule));
        }
Example #2
0
        Interfaces.Indicators.AverageDirectionalIndex IndicatorFactory.AverageDirectionalIndex(int period, DataStream stream)
        {
            var nmodule = new DirectionalIndex(period, stream, _manager.Agent.TimeFrame);

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