Skip to content

DrawIcon Method (2)

DrawIcon (1 of 2)

Summary

Draws an icon.

Signature

1
public abstract ChartIcon DrawIcon(string name, ChartIconType iconType, DateTime time, double y, 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.
iconType ChartIconType The type of the icon.
time DateTime The time value of the icon location on the X-axis.
y double The Y-axis value of the icon location.
color Color The color of the icon.

Return Value

ChartIcon

Declaring Type

cAlgo.API.ChartArea

DrawIcon (2 of 2)

Summary

Draws an icon.

Signature

1
public abstract ChartIcon DrawIcon(string name, ChartIconType iconType, int barIndex, double y, 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.
iconType ChartIconType Type of the icon.
barIndex int The bar index of the icon location on the X-axis.
y double The Y-axis value of the icon location.
color Color The color of the icon.

Return Value

ChartIcon

Declaring Type

cAlgo.API.ChartArea


Last update: June 26, 2022

Comments