Summary
Represents the Vertical Line chart object. The line parallel to the Y-axis that can be set on a certain time value on the X-axis.
Syntax
public interface ChartVerticalLine : ChartObject
Members
Name | Type | Summary |
---|---|---|
Color | Property | Gets or sets the line color. |
LineStyle | Property | Gets or sets the line style. |
Thickness | Property | Gets or sets the line thickness. |
Time | Property | Gets or sets the value on the Time line. |
Example 1
using cAlgo.API; namespace cAlgo { // This sample shows how to draw a vertical line on chart by using Chart.DrawVertical line method [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class ChartVerticalLineSample : Indicator { protected override void Initialize() { var verticalLine = Chart.DrawVerticalLine("vertical_line", Chart.LastVisibleBarIndex, Color.Red, 2, LineStyle.DotsRare); verticalLine.IsInteractive = true; } public override void Calculate(int index) { } } }