Example #1
0
 protected override void OnStart()
 {
     _heiken = Indicators.GetIndicator <HeikenAshi2>(1);
     _kama   = Indicators.GetIndicator <KAMASignal>(Source, Fast, Slow, Period);
     _adx    = Indicators.GetIndicator <ADXRSignal>(Source, interval);
     Fisher  = Indicators.GetIndicator <FisherSignal>(Len);
 }
        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);
        }