Example #1
0
        public void Wireup(FeedRegistry <TItem, TOption> feedRegistry)
        {
            foreach (var ticker in feedRegistry.Items)
            {
                foreach (var PriceItemFeed in ticker.Values)
                {
                    Wireup(_bars[PriceItemFeed.Ticker.Symbol.Id][PriceItemFeed.Ticker.Interval.UnitId], PriceItemFeed);
                }
            }

            foreach (var ticker in feedRegistry.Options)
            {
                foreach (var priceOption in ticker.Values)
                {
                    Wireup(_bars[priceOption.Ticker.Symbol.Id][priceOption.Ticker.Interval.UnitId], priceOption);
                }
            }
        }
Example #2
0
 public HeikenAshiFeed()
 {
     Registry   = new FeedRegistry <IHeikenAshiBar, HeikenAshiPriceOption>();
     Aggregator = new HeikenAshiAggregator();
 }
Example #3
0
 public CandlestickFeed()
 {
     Registry   = new FeedRegistry <ICandlestickBar, CandlestickPriceOption>();
     Aggregator = new CandlestickAggregator();
 }
Example #4
0
 public OHLCFeed()
 {
     Registry   = new FeedRegistry <IOHLCBar, OHLCPriceOption>();
     Aggregator = new OHLCAggregator();
 }
Example #5
0
 public PriceBarFeed()
 {
     Registry   = new FeedRegistry <IPriceBar, PriceBarOption>();
     Aggregator = new PriceBarAggregator();
 }
Example #6
0
 public RenkoFeed()
 {
     Registry   = new FeedRegistry <IRenkoBar, RenkoPriceOption>();
     Aggregator = new RenkoAggregator();
 }