예제 #1
0
 public TickerReference(Guid id, TickerSymbol symbol, FeedInterval interval, Type priceFeedType, int priceFeedOption)
 {
     _id              = id;
     _priceFeedType   = priceFeedType;
     _priceFeedOption = priceFeedOption;
     Symbol           = symbol;
     Interval         = interval;
 }
예제 #2
0
        public TickerReference Setup(TickerSymbol tickerSymbol, FeedInterval interval, HeikenAshiPriceOption ohlcPriceOption)
        {
            if (ohlcPriceOption == HeikenAshiPriceOption.All)
            {
                Registry.ItemSetup(tickerSymbol.Id, interval.UnitId);
            }
            else
            {
                Registry.OptionSetup(tickerSymbol.Id, interval.UnitId);
            }

            var tickerReference = new TickerReference(Guid.NewGuid(), tickerSymbol, interval, typeof(HeikenAshiPriceOption), (int)ohlcPriceOption);

            Aggregator.Setup(tickerReference);

            return(tickerReference);
        }
예제 #3
0
 public TickerReference Setup(TickerSymbol tickerSymbol, FeedInterval interval, RenkoPriceOption priceBarOption)
 {
     return(Renko.Setup(tickerSymbol, interval, priceBarOption));
 }
예제 #4
0
 public TickerReference Setup(TickerSymbol tickerSymbol, FeedInterval interval, HeikenAshiPriceOption heikenAshiPriceOption)
 {
     return(HeikenAshi.Setup(tickerSymbol, interval, heikenAshiPriceOption));
 }
예제 #5
0
 public TickerReference Setup(TickerSymbol tickerSymbol, FeedInterval interval, CandlestickPriceOption candlestickPriceOption)
 {
     return(Candlesticks.Setup(tickerSymbol, interval, candlestickPriceOption));
 }
예제 #6
0
 public TickerReference Setup(TickerSymbol tickerSymbol, FeedInterval interval, OHLCPriceOption ohlcPriceOption)
 {
     return(OHLC.Setup(tickerSymbol, interval, ohlcPriceOption));
 }