protected override void OnStart() { _macd = Indicators.MacdHistogram(LongCycle, ShortCycle, Period); _emaFast = Indicators.ExponentialMovingAverage(Price, FastPeriods); _adx = Indicators.GetIndicator <ADXR>(Source, interval); _cci = Indicators.GetIndicator <CCI>(CCI_period); _heiken = Indicators.GetIndicator <HeikenAshi2>(1); _emasignal = Indicators.GetIndicator <ExponentialSignal>(EMAPeriod); }
protected override void OnStart() { _botName = ToString(); _instanceLabel = string.Format("{0}-{1}-{2}-{3}-{4}", _botName, _botVersion, Symbol.Code, TimeFrame.ToString(), GlobalTimeFrame.ToString()); tendency = Indicators.GetIndicator <CandlestickTendencyII>(GlobalTimeFrame, MinimumGlobalCandleSize); _macd = Indicators.MacdHistogram(LongCycle, ShortCycle, Period); _emaFast = Indicators.ExponentialMovingAverage(Price, FastPeriods); _adx = Indicators.GetIndicator <ADXR>(Source, interval); _cci = Indicators.GetIndicator <CCI>(CCI_period); _heiken = Indicators.GetIndicator <HeikenAshi2>(1); _emasignal = Indicators.GetIndicator <ExponentialSignal>(20); }
protected override void OnStart() { _botName = ToString(); _instanceLabel = string.Format("{0}-{1}-{2}-{3}-{4}", _botName, _botVersion, Symbol.Code, TimeFrame.ToString(), GlobalTimeFrame.ToString()); tendency = Indicators.GetIndicator <CandlestickTendencyII>(GlobalTimeFrame, MinimumGlobalCandleSize); tendency2 = Indicators.GetIndicator <CandlestickTendencyII_2>(GlobalTimeFrame2, MinimumGlobalCandleSize2); _emaFast = Indicators.ExponentialMovingAverage(Price, FastPeriods); _adx = Indicators.GetIndicator <ADXR>(Source, interval); _heiken = Indicators.GetIndicator <HeikenAshi2>(1); _emasignal = Indicators.GetIndicator <ExponentialSignal>(20); Fischer = Indicators.GetIndicator <FisherTransform>(Len); COG = Indicators.GetIndicator <CenterOfGravityOscillator>(Length); pipsATR = Indicators.GetIndicator <PipsATRIndicator>(TimeFrame, AtrPeriod, AtrMaType); minPipsATR = pipsATR.Result.Minimum(pipsATR.Result.Count); maxPipsATR = pipsATR.Result.Maximum(pipsATR.Result.Count); }