Example #1
0
 public StrategyDrawer(IGraphicDrawer_PriceRect drawer, IGraphicData graphicData, PriceGraphicMapping mapping, int startPos)
 {
     this.drawer      = drawer;
     this.graphicData = graphicData;
     this.mapping     = mapping;
     this.startPos    = startPos;
 }
Example #2
0
        public Point GetCrossHairPoint(int selectIndex)
        {
            PriceGraphicMapping priceMapping = this.drawer.drawer_chart.PriceMapping;
            float x = priceMapping.CalcX(selectIndex);
            float y = priceMapping.CalcY(drawer.DataProvider.GetRealData().Arr_Price[selectIndex]);

            return(new Point((int)x, (int)y));
        }
Example #3
0
 public ChartComponentShapeDrawer(IGraphicDrawer_PriceRect drawer, IGraphicData graphicData, PriceGraphicMapping mapping)
 {
     this.drawer      = drawer;
     this.graphicData = graphicData;
     this.mapping     = mapping;
 }
Example #4
0
 public StrategyDrawer(IGraphicDrawer_PriceRect drawer, IGraphicData graphicData, PriceGraphicMapping mapping)
 {
     this.drawer      = drawer;
     this.graphicData = graphicData;
     this.mapping     = mapping;
 }