Summary
Represents the Equidistant Channel chart object. The tool that allows drawing two precisely parallel lines in any direction on the chart.
Syntax
public interface ChartEquidistantChannel : ChartObject
Members
Name | Type | Summary |
---|---|---|
ChannelHeight | Property | Gets or sets the height of the Equidistant Channel. |
Color | Property | Gets or sets the Equidistant Channel line color. |
ExtendToInfinity | Property | Defines if the Equidistant channel extends to infinity. |
LineStyle | Property | Gets or sets the Equidistant channel line style. |
ShowAngle | Property | Gets or sets the Equidistant Channel angle. |
Thickness | Property | Gets or sets the Equidistant Channel line thickness. |
Time1 | Property | Gets or sets the value 1 on the Time line. |
Time2 | Property | Gets or sets the value 2 on the Time line. |
Y1 | Property | Gets or sets the value 1 on the Y-axis. |
Y2 | Property | Gets or sets the value 2 on the Y-axis. |
Example 1
using cAlgo.API; namespace cAlgo { // A sample indicator for showing how to use Chart.DrawEquidistantChannel method [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class EquidistantChannelSample : Indicator { protected override void Initialize() { var channel = Chart.DrawEquidistantChannel("EquidistantChannel", Chart.FirstVisibleBarIndex, Bars.LowPrices[Chart.FirstVisibleBarIndex], Chart.LastVisibleBarIndex, Bars.HighPrices[Chart.LastVisibleBarIndex], 20 * Symbol.PipSize, Color.Red); channel.IsInteractive = true; } public override void Calculate(int index) { } } }