How to develop a ChartObject |
ArthaChitra lets one to create drawing objects such as lines, triangle, rectangle etc. The drawing objects are derived from DrawingBase class which derives from the DrawingVisual class.
The Chart Objects works in conjunction with Cursor Objects. How the chart will be drawn on mouse move is defined by the Cursor Object code. Please click here to know more about the Cursor Object.
A Chart Object can also be drawn via a SharpScript code (Indicators and Strategies). Please refer here to know more.
The draw method is called whenever the view renders itself. User must override this virtual method and draw the chartObject. The base method draws the handle of the chart object
protected override void Draw(DrawingContext drawingContext) { //your code here base.Draw(drawingContext); }