public IIndicators GetIndicator(TradeAutomation.FactoryParameters inputParameters)
        {
            switch (inputParameters.IndicatorType)
            {
            case "MA":
                return(new MovingAverageCrossOver(inputParameters));

            default:
                return(null);
            }
        }
Beispiel #2
0
 public MovingAverageCrossOver(TradeAutomation.FactoryParameters inputParameters)
 {
     _fastMa = inputParameters.Bot.Indicators.MovingAverage(inputParameters.SourceSeries, inputParameters.FastPeriods, inputParameters.MAType);
     _slowMa = inputParameters.Bot.Indicators.MovingAverage(inputParameters.SourceSeries, inputParameters.SlowPeriods, inputParameters.MAType);
 }