Skip to content

ChartIconType

Summary

Represents the type of the Icon.

Signature

1
public enum ChartIconType

Namespace

cAlgo.API

Fields

Name Description
UpArrow The Up Arrow icon.
DownArrow The Down Arrow icon.
Circle The Circle icon.
Square The Square icon.
Diamond The Diamond icon.
Star The Star icon.
UpTriangle The Up Triangle icon.
DownTriangle The Down Triangle icon.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
 using cAlgo.API;
 namespace cAlgo
 {
     // This example shows how to use the Chart ChartIconType
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public class ChartIconTypeSample : Indicator
     {
         [Parameter("Icon Type", DefaultValue = ChartIconType.DownArrow)]
         public ChartIconType IconType { get; set; }
         protected override void Initialize()
         {
             Chart.DrawIcon("Icon", IconType, Chart.LastVisibleBarIndex, Chart.Bars.LastBar.Low, Color.Red);
         }
         public override void Calculate(int index)
         {
         }
     }
 }

See Also


Last update: July 1, 2022

Comments