Skip to content

DrawTriangle Method (6)

DrawTriangle (1 of 6)

Summary

Draws a triangle.

Signature

1
public abstract ChartTriangle DrawTriangle(string name, DateTime time1, double y1, DateTime time2, double y2, DateTime time3, double y3, Color color)

Parameters

Name Type Description
name string The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name.
time1 DateTime The time value of the triangle point 1 location on the X-axis.
y1 double The Y-axis value of the triangle point 1 location.
time2 DateTime The time value of the triangle point 2 location on the X-axis.
y2 double The Y-axis value of the triangle point 2 location.
time3 DateTime The time value of the triangle point 3 location on the X-axis.
y3 double The Y-axis value of the triangle point 3 location.
color Color The triangle line color.

Return Value

ChartTriangle

Declaring Type

cAlgo.API.ChartArea

DrawTriangle (2 of 6)

Summary

Draws a triangle.

Signature

1
public abstract ChartTriangle DrawTriangle(string name, DateTime time1, double y1, DateTime time2, double y2, DateTime time3, double y3, Color color, int thickness)

Parameters

Name Type Description
name string The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name.
time1 DateTime The time value of the triangle point 1 location on the X-axis.
y1 double The Y-axis value of the triangle point 1 location.
time2 DateTime The time value of the triangle point 2 location on the X-axis.
y2 double The Y-axis value of the triangle point 2 location.
time3 DateTime The time value of the triangle point 3 location on the X-axis.
y3 double The Y-axis value of the triangle point 3 location.
color Color The triangle line color.
thickness int The triangle line thickness.

Return Value

ChartTriangle

Declaring Type

cAlgo.API.ChartArea

DrawTriangle (3 of 6)

Summary

Draws a triangle.

Signature

1
public abstract ChartTriangle DrawTriangle(string name, DateTime time1, double y1, DateTime time2, double y2, DateTime time3, double y3, Color color, int thickness, LineStyle lineStyle)

Parameters

Name Type Description
name string The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name.
time1 DateTime The time value of the triangle point 1 location on the X-axis.
y1 double The Y-axis value of the triangle point 1 location.
time2 DateTime The time value of the triangle point 2 location on the X-axis.
y2 double The Y-axis value of the triangle point 2 location.
time3 DateTime The time value of the triangle point 3 location on the X-axis.
y3 double The Y-axis value of the triangle point 3 location.
color Color The triangle line color.
thickness int The triangle line thickness.
lineStyle LineStyle The triangle line style.

Return Value

ChartTriangle

Declaring Type

cAlgo.API.ChartArea

DrawTriangle (4 of 6)

Summary

Draws a triangle.

Signature

1
public abstract ChartTriangle DrawTriangle(string name, int barIndex1, double y1, int barIndex2, double y2, int barIndex3, double y3, Color color)

Parameters

Name Type Description
name string The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name.
barIndex1 int The bar index of the triangle point 1 location on the X-axis.
y1 double The Y-axis value of the triangle point 1 location.
barIndex2 int The bar index of the triangle point 2 location on the X-axis.
y2 double The Y-axis value of the triangle point 2 location.
barIndex3 int The bar index of the triangle point 3 location on the X-axis.
y3 double The Y-axis value of the triangle point 3 location.
color Color The triangle line color.

Return Value

ChartTriangle

Declaring Type

cAlgo.API.ChartArea

DrawTriangle (5 of 6)

Summary

Draws a triangle.

Signature

1
public abstract ChartTriangle DrawTriangle(string name, int barIndex1, double y1, int barIndex2, double y2, int barIndex3, double y3, Color color, int thickness)

Parameters

Name Type Description
name string The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name.
barIndex1 int The bar index of the triangle point 1 location on the X-axis.
y1 double The Y-axis value of the triangle point 1 location.
barIndex2 int The bar index of the triangle point 2 location on the X-axis.
y2 double The Y-axis value of the triangle point 2 location.
barIndex3 int The bar index of the triangle point 3 location on the X-axis.
y3 double The Y-axis value of the triangle point 3 location.
color Color The triangle line color.
thickness int The triangle line thickness.

Return Value

ChartTriangle

Declaring Type

cAlgo.API.ChartArea

DrawTriangle (6 of 6)

Summary

Draws a triangle.

Signature

1
public abstract ChartTriangle DrawTriangle(string name, int barIndex1, double y1, int barIndex2, double y2, int barIndex3, double y3, Color color, int thickness, LineStyle lineStyle)

Parameters

Name Type Description
name string The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name.
barIndex1 int The bar index of the triangle point 1 location on the X-axis.
y1 double The Y-axis value of the triangle point 1 location.
barIndex2 int The bar index of the triangle point 2 location on the X-axis.
y2 double The Y-axis value of the triangle point 2 location.
barIndex3 int The bar index of the triangle point 3 location on the X-axis.
y3 double The Y-axis value of the triangle point 3 location.
color Color The triangle line color.
thickness int The triangle line thickness.
lineStyle LineStyle The triangle line style.

Return Value

ChartTriangle

Declaring Type

cAlgo.API.ChartArea


Last update: July 1, 2022

Comments