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.
Signature
1
publicabstractinterfaceChartVerticalLine
Namespace
cAlgo.API
Examples
1 2 3 4 5 6 7 8 91011121314151617
usingcAlgo.API;namespacecAlgo{// 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)]publicclassChartVerticalLineSample:Indicator{protectedoverridevoidInitialize(){varverticalLine=Chart.DrawVerticalLine("vertical_line",Chart.LastVisibleBarIndex,Color.Red,2,LineStyle.DotsRare);verticalLine.IsInteractive=true;}publicoverridevoidCalculate(intindex){}}}