Exemple #1
0
        private void RefreshTimeLineDrawer()
        {
            ITimeLineData timeLineData = compDataController.CurrentRealTimeDataReader_Code.GetTimeLineData();

            this.graphicData_TimeLine         = GraphicDataFactory.CreateGraphicData_TimeLine(timeLineData);
            this.drawer_TimeLine.DataProvider = graphicData_TimeLine;
            this.graphicDrawer.Switch(1);
        }
Exemple #2
0
        private GraphicDrawer_Candle InitGraphicDrawer_Candle()
        {
            this.drawer_Candle = new GraphicDrawer_Candle();
            IKLineData klineData = this.compDataController.CurrentRealTimeDataReader_Code.GetKLineData(compData.KlinePeriod);

            this.graphicData_Candle = GraphicDataFactory.CreateGraphicData_Candle(klineData, 0, klineData.BarPos);
            this.graphicData_Candle.OnGraphicDataChange += GraphicData_Candle_OnGraphicDataChange;
            this.drawer_Candle.DataProvider              = graphicData_Candle;
            return(this.drawer_Candle);
        }
Exemple #3
0
        private GraphicDrawer_TimeLine InitGraphicDrawer_TimeLine()
        {
            this.drawer_TimeLine = new GraphicDrawer_TimeLine();
            ITimeLineData timeLineData = compDataController.CurrentRealTimeDataReader_Code.GetTimeLineData();

            int barPos = TimeIndeierUtils.IndexOfTime_TimeLine(timeLineData, compData.Time);

            timeLineData.BarPos = barPos;

            this.graphicData_TimeLine    = GraphicDataFactory.CreateGraphicData_TimeLine(timeLineData);
            drawer_TimeLine.DataProvider = graphicData_TimeLine;
            return(this.drawer_TimeLine);
        }