예제 #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();
 }