コード例 #1
0
        private RefPair <DateTimeOffset, IDictionary <IChartElement, object> >[] ProcessHistoryCandles(ChartIndicatorElement element, CandleSeries series)
        {
            var candles = series.GetCandles <Candle>().Where(c => c.State == CandleStates.Finished).ToArray();

            return(candles
                   .Select(candle => new RefPair <DateTimeOffset, IDictionary <IChartElement, object> >(candle.OpenTime, new Dictionary <IChartElement, object>
            {
                { element, CreateIndicatorValue(element, candle) }
            }))
                   .ToArray());
        }