Пример #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);
                }
            }
        }
Пример #2
0
 public HeikenAshiFeed()
 {
     Registry   = new FeedRegistry <IHeikenAshiBar, HeikenAshiPriceOption>();
     Aggregator = new HeikenAshiAggregator();
 }
Пример #3
0
 public CandlestickFeed()
 {
     Registry   = new FeedRegistry <ICandlestickBar, CandlestickPriceOption>();
     Aggregator = new CandlestickAggregator();
 }
Пример #4
0
 public OHLCFeed()
 {
     Registry   = new FeedRegistry <IOHLCBar, OHLCPriceOption>();
     Aggregator = new OHLCAggregator();
 }
Пример #5
0
 public PriceBarFeed()
 {
     Registry   = new FeedRegistry <IPriceBar, PriceBarOption>();
     Aggregator = new PriceBarAggregator();
 }
Пример #6
0
 public RenkoFeed()
 {
     Registry   = new FeedRegistry <IRenkoBar, RenkoPriceOption>();
     Aggregator = new RenkoAggregator();
 }