ChartHorizontalLine
Summary
Represents the Horizontal Line chart object. Used to mark a certain value on the Y-axis throughout the whole chart.
Signature
| public abstract interface ChartHorizontalLine
|
Namespace
cAlgo.API
Examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 | using cAlgo.API;
namespace cAlgo
{
// This sample indicator shows how to use Chart.DrawHorizontalLine method to draw an horizontal line
[Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class HorizontalLineSample : Indicator
{
protected override void Initialize()
{
Chart.DrawHorizontalLine("horizontalLine", Bars.ClosePrices.LastValue, Color.Red);
}
public override void Calculate(int index)
{
}
}
}
|
See Also
Properties
Y
Summary
Gets or sets the Y-axis value of the line location.
Signature
| public abstract double Y {get; set;}
|
Return Value
double
Thickness
Summary
Gets or sets the line thickness.
Signature
| public abstract int Thickness {get; set;}
|
Return Value
int
Related Tutorials
Color
Summary
Gets or sets the line color.
Signature
| public abstract Color Color {get; set;}
|
Return Value
Color
LineStyle
Summary
Gets or sets the line style.
Signature
| public abstract LineStyle LineStyle {get; set;}
|
Return Value
LineStyle