Exemplo n.º 1
0
        public static List <KLineBar> GenerateCharts(TickData tickData, List <double[]> openTime, KLinePeriod targetPeriod, float yesterdayEndPrice)
        {
            DataTransfer_Tick2KLineGenerator gen = new DataTransfer_Tick2KLineGenerator(tickData, openTime, targetPeriod, yesterdayEndPrice);
            List <KLineBar> charts = new List <KLineBar>();

            while (gen.HasNext())
            {
                charts.Add(gen.NextChart());
            }
            return(charts);
        }
Exemplo n.º 2
0
 public List <KLineBar> GetKLineCharts()
 {
     return(DataTransfer_Tick2KLineGenerator.GenerateCharts(ticks, openTime, targetPeriod, yesterdayEndPrice));
 }
Exemplo n.º 3
0
        public KLineData GetKLineData()
        {
            List <KLineBar> charts = DataTransfer_Tick2KLineGenerator.GenerateCharts(ticks, openTime, targetPeriod, yesterdayEndPrice);

            return(GetCharts(charts));
        }