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); } } }
public HeikenAshiFeed() { Registry = new FeedRegistry <IHeikenAshiBar, HeikenAshiPriceOption>(); Aggregator = new HeikenAshiAggregator(); }
public CandlestickFeed() { Registry = new FeedRegistry <ICandlestickBar, CandlestickPriceOption>(); Aggregator = new CandlestickAggregator(); }
public OHLCFeed() { Registry = new FeedRegistry <IOHLCBar, OHLCPriceOption>(); Aggregator = new OHLCAggregator(); }
public PriceBarFeed() { Registry = new FeedRegistry <IPriceBar, PriceBarOption>(); Aggregator = new PriceBarAggregator(); }
public RenkoFeed() { Registry = new FeedRegistry <IRenkoBar, RenkoPriceOption>(); Aggregator = new RenkoAggregator(); }