Beispiel #1
0
        protected override void OnStart()
        {
            _botName       = ToString();
            _instanceLabel = string.Format("{0}-{1}-{2}-{3}-{4}", _botName, _botVersion, Symbol.Code, TimeFrame.ToString(), HighOrderTimeFrame.ToString());

            tendency = Indicators.GetIndicator <CandlestickTendencyII>(HighOrderTimeFrame);
        }
Beispiel #2
0
 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);
 }
Beispiel #3
0
        protected override void OnStart()
        {
            label    = "Bladerunner Major" + 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);

            Positions.Opened += PositionsOnOpened;
            Positions.Closed += PositionsOnClosed;
        }
Beispiel #4
0
 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);
 }
Beispiel #5
0
 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);
 }
        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);
        }
Beispiel #7
0
        protected override void OnStart()
        {
            _botName = ToString();
            _instanceLabel = string.Format("{0}-{1}-{2}-{3}-{4}", _botName, _botVersion, Symbol.Code, TimeFrame.ToString(), HighOrderTimeFrame.ToString());

            tendency = Indicators.GetIndicator<CandlestickTendencyII>(HighOrderTimeFrame);

        }