Ejemplo 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;
 }
Ejemplo 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);
        }
Ejemplo n.º 3
0
 public TickerReference Setup(TickerSymbol tickerSymbol, FeedInterval interval, RenkoPriceOption priceBarOption)
 {
     return(Renko.Setup(tickerSymbol, interval, priceBarOption));
 }
Ejemplo n.º 4
0
 public TickerReference Setup(TickerSymbol tickerSymbol, FeedInterval interval, HeikenAshiPriceOption heikenAshiPriceOption)
 {
     return(HeikenAshi.Setup(tickerSymbol, interval, heikenAshiPriceOption));
 }
Ejemplo n.º 5
0
 public TickerReference Setup(TickerSymbol tickerSymbol, FeedInterval interval, CandlestickPriceOption candlestickPriceOption)
 {
     return(Candlesticks.Setup(tickerSymbol, interval, candlestickPriceOption));
 }
Ejemplo n.º 6
0
 public TickerReference Setup(TickerSymbol tickerSymbol, FeedInterval interval, OHLCPriceOption ohlcPriceOption)
 {
     return(OHLC.Setup(tickerSymbol, interval, ohlcPriceOption));
 }