示例#1
0
        private float GetPrice(Series.Series source, int i)
        {
            var price =
                source is CandlestickSeries
                    ? ((CandlestickSeries)source).Data.Candles[i].GetPrice(priceType)
                    : series.GetPrice(i) ?? 0;

            return(price);
        }