public IPriceItemFeed <TItem> Assign(TickerReference tickerReference, Action <TickerReference, TItem> priceAction) { var itemFeed = new PriceItemFeed <TickerReference, TItem>(tickerReference, priceAction); _item[tickerReference.Symbol.Id][tickerReference.Interval.UnitId] = itemFeed; return(itemFeed); }
protected override void Wireup(RenkoBars bars, PriceItemFeed <TickerReference, IRenkoBar> priceItemFeed) { bars.BarUpdated += priceItemFeed.PriceAction; }
protected abstract void Wireup(TBars bars, PriceItemFeed <TickerReference, TItem> priceItemFeed);