AddChartArc()

Description

AddChartArc() draws a circular arc.

Usage

AddChartArc(string name, int barsBackStart, double startY, int barsBackEnd, double endY, Color color)
AddChartArc(string name, bool autoScale, int barsBackStart, double startY, int barsBackEnd, double endY, Color color, DashStyle dashStyle, int width)
AddChartArc(string name, bool autoScale, DateTime startTime, double startY, DateTime endTime, double endY, Color color, DashStyle dashStyle, int width)

Return Value

A drawing object of the type IArc (interface)

Parameter

name

A clearly identifiable name for the drawing object

autoScale

Adjusts the scale of the y-axis so that drawing objects can be viewed in their entirety

barsBackStart

Number of bars ago for the starting point

startTime

Date/time for the starting point

startY

y-value for the starting point

barsBackEnd

Number of bars ago for the end point

endTime

Date/time for the end point

endY

y-value for the end point

color

Color of the drawing object

dashStyle

LevelLine style:

DashStyle.Dash

DashStyle.DashDot

DashStyle.DashDotDot

DashStyle.Dot

DashStyle.Solid

You may have to integrate: using System.Drawing.Drawing2D;

width

LevelLine strength in points

Example

// AddChart a blue arc
AddChartArc("MyArc-" + ProcessingBarIndex, true, 10, 10, 0, 20, Color.Blue, DashStyle.Solid, 3);

Last updated