Esempio n. 1
0
        protected override void OnStart()
        {
            _botName       = ToString();
            _instanceLabel = string.Format("{0}-{1}-{2}-{3}", _botName, _botVersion, Symbol.Code, TimeFrame.ToString());
            rsi            = Indicators.RelativeStrengthIndex(RsiSource, RsiPeriod);

            pipsATR = Indicators.GetIndicator <PipsATRIndicator>(TimeFrame, AtrPeriod, AtrMaType);

            minPipsATR = pipsATR.Result.Minimum(pipsATR.Result.Count);
            maxPipsATR = pipsATR.Result.Maximum(pipsATR.Result.Count);
        }
Esempio n. 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);
     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);
        }