protected override void OnStart() { ADXRSeries = MarketData.GetSeries(TimeFrame.Hour4); _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 <ADXRSignal>(Source, interval); _heiken = Indicators.GetIndicator <HeikenAshi2>(1); _kama = Indicators.GetIndicator <KAMASignal>(Source, Fast, Slow, Period); Fisher = Indicators.GetIndicator <FisherSignal>(Len); //COG = Indicators.GetIndicator<CenterOfGravityOscillator>(Length); pipsATR = Indicators.GetIndicator <PipsATRIndicator>(TimeFrame, AtrPeriod, AtrMaType); _onBalanceVolume = Indicators.OnBalanceVolume(Source); minPipsATR = pipsATR.Result.Minimum(pipsATR.Result.Count); maxPipsATR = pipsATR.Result.Maximum(pipsATR.Result.Count); }
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() { label = "Bladerunner Major CCI Heiken" + " " + Symbol.Code + " " + TimeFrame.ToString() + " / " + GlobalTimeFrame.ToString(); tendency = Indicators.GetIndicator <CandlestickTendencyII>(GlobalTimeFrame, MinimumGlobalCandleSize); index = MarketSeries.Close.Count - 1; _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); Positions.Opened += PositionsOnOpened; Positions.Closed += PositionsOnClosed; }
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); //_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); 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); }