public CandleStickReader(int timeframe, PriceReader priceReader) { Timeframe = timeframe; PriceReader = priceReader ?? throw new ArgumentNullException(); priceReader.NewPrice += PriceReader_NewPrice; item = null; }
public CandleStickReader(int timeframe, PriceReader PriceReader) { Timeframe = timeframe; this.PriceReader = PriceReader ?? throw new AggregateException(); PriceReader.NewPrice += PriceReader_NewPrice; item = null; }
public void Start() { PriceReader.Start(); }