コード例 #1
0
        private static void CCICalc(out CCI CCITrades, Core.Exchanges.Bitfinex.TickerReader bfxReader, out TickerHandler tickerHndl, Core.Exchanges.Bitfinex.TickerCandlesReader hist)
        {
            CCITrades            = new CCI();
            tickerHndl           = new TickerHandler(bfxReader, CCITrades);
            tickerHndl.CCIReady += tickerHndl_CCI_IndicatorReady;

            var lista = hist.GetHistory("BTCUSD", Core.Exchanges.Bitfinex.Common.CandleInterval1Min, 22);

            foreach (Ticker t in lista)
            {
                CCITrades.Add(t.UtcDateTime, t.high, t.low, t.last_price);
            }
        }
コード例 #2
0
 private void _tickerReader_TickerReady(object sender, Ticker e)
 {
     _rsi?.Add(DateTime.Now, e.last_price);
     _cci?.Add(DateTime.Now, e.high, e.low, e.last_price);
     _bband?.Add(DateTime.Now, e.last_price);
 }