ChartType
Summary
Represents the predefined chart types.
Signature
Namespace
cAlgo.API
Examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 | 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 ChartTypeSample : Indicator
{
protected override void Initialize()
{
ShowChartType();
Chart.ChartTypeChanged += Chart_ChartTypeChanged;
}
private void Chart_ChartTypeChanged(ChartTypeEventArgs obj)
{
ShowChartType();
}
private void ShowChartType()
{
Chart.DrawStaticText("type", string.Format("Type: {0}", Chart.ChartType), VerticalAlignment.Top, HorizontalAlignment.Right, Color.Red);
}
public override void Calculate(int index)
{
}
}
}
|
See Also
Fields
Bars
Summary
The Bar chart.
Signature
| public static ChartType Bars;
|
Return Value
ChartType
Candlesticks
Summary
The Candlestick chart.
Signature
| public static ChartType Candlesticks;
|
Return Value
ChartType
Line
Summary
The Line chart.
Signature
| public static ChartType Line;
|
Return Value
ChartType
Dots
Summary
The Dots chart.
Signature
| public static ChartType Dots;
|
Return Value
ChartType
Area
Summary
The Area chart.
Signature
| public static ChartType Area;
|
Return Value
ChartType
Hlc
Summary
The HLC chart.
Signature
| public static ChartType Hlc;
|
Return Value
ChartType