コード例 #1
0
        internal void Add(ChartQuotation chartQuotation)
        {
            if (this.High < chartQuotation.High) this.High = chartQuotation.High;
            if (this.Low > chartQuotation.Low) this.Low = chartQuotation.Low;

            this._chartQuotations.Add(chartQuotation);
        }
コード例 #2
0
        internal static ChartQuotationCollection Create(DataSet dataSet, string dataCycle, string dateFormat)
        {
            var result = new ChartQuotationCollection();

            DataRow[] rows = dataSet.Tables[0].Select(null, "Date");
            foreach (ChartQuotation chartQuotation in rows.Select(row => ChartQuotation.Create(row, dateFormat)))
            {
                result.Add(chartQuotation);
            }
            result.DataCycle = dataCycle;
            return(result);
        }
コード例 #3
0
        internal void Add(ChartQuotation chartQuotation)
        {
            if (this.High < chartQuotation.High)
            {
                this.High = chartQuotation.High;
            }
            if (this.Low > chartQuotation.Low)
            {
                this.Low = chartQuotation.Low;
            }

            this._chartQuotations.Add(chartQuotation);
        }