ChartIconType
enum cAlgo.API
DesktopCLICloud
Represents the type of the Icon.
Definition
public enum ChartIconType
Namespace: cAlgo.API · Group: Drawings
Examples
using cAlgo.API;
namespace cAlgo
{
// This example shows how to use the Chart ChartIconType
public partial class ChartIconTypeSample : Indicator
{
protected override void Initialize()
{
Chart.DrawIcon("Icon", IconType, Chart.LastVisibleBarIndex, Chart.Bars.LastBar.Low, Color.Red);
}
public override void Calculate(int index)
{
}
}
}
import clr
clr.AddReference("cAlgo.API")
from cAlgo.API import *
class Test():
def initialize(self):
api.Chart.DrawIcon("Icon", api.IconType, api.Chart.LastVisibleBarIndex, api.Chart.Bars.LastBar.Low, Color.Red)
{
"AccessRights": "None",
"TimeZone": "UTC",
"IsOverlay": true,
"Parameters": [
{
"Name": "IconType",
"DisplayName": "Icon Type",
"Type": "Enum",
"EnumTypeFullName": "cAlgo.API.ChartIconType",
"DefaultValue": "DownArrow"
}
]
}
Values
| Name | Value | Description |
|---|---|---|
UpArrow | 0 | The Up Arrow icon. |
DownArrow | 1 | The Down Arrow icon. |
Circle | 2 | The Circle icon. |
Square | 3 | The Square icon. |
Diamond | 4 | The Diamond icon. |
Star | 5 | The Star icon. |
UpTriangle | 6 | The Up Triangle icon. |
DownTriangle | 7 | The Down Triangle icon. |