Esempio n. 1
0
 public TickerReference(Guid id, TickerSymbol symbol, FeedInterval interval, Type priceFeedType, int priceFeedOption)
 {
     _id              = id;
     _priceFeedType   = priceFeedType;
     _priceFeedOption = priceFeedOption;
     Symbol           = symbol;
     Interval         = interval;
 }
Esempio n. 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);
        }
Esempio n. 3
0
 public TickerReference Setup(TickerSymbol tickerSymbol, FeedInterval interval, RenkoPriceOption priceBarOption)
 {
     return(Renko.Setup(tickerSymbol, interval, priceBarOption));
 }
Esempio n. 4
0
 public TickerReference Setup(TickerSymbol tickerSymbol, FeedInterval interval, HeikenAshiPriceOption heikenAshiPriceOption)
 {
     return(HeikenAshi.Setup(tickerSymbol, interval, heikenAshiPriceOption));
 }
Esempio n. 5
0
 public TickerReference Setup(TickerSymbol tickerSymbol, FeedInterval interval, CandlestickPriceOption candlestickPriceOption)
 {
     return(Candlesticks.Setup(tickerSymbol, interval, candlestickPriceOption));
 }
Esempio n. 6
0
 public TickerReference Setup(TickerSymbol tickerSymbol, FeedInterval interval, OHLCPriceOption ohlcPriceOption)
 {
     return(OHLC.Setup(tickerSymbol, interval, ohlcPriceOption));
 }