Skip to content

ChartEquidistantChannel

Summary

Represents the Equidistant Channel chart object. The tool that allows drawing two precisely parallel lines in any direction on the chart.

Signature

1
public abstract interface ChartEquidistantChannel

Namespace

cAlgo.API

Properties

Name Description
Time1 { get; set; } Gets or sets the value 1 on the Time line.
Time2 { get; set; } Gets or sets the value 2 on the Time line.
Y1 { get; set; } Gets or sets the value 1 on the Y-axis.
Y2 { get; set; } Gets or sets the value 2 on the Y-axis.
ChannelHeight { get; set; } Gets or sets the height of the Equidistant Channel.
Thickness { get; set; } Gets or sets the Equidistant Channel line thickness.
LineStyle { get; set; } Gets or sets the Equidistant channel line style.
Color { get; set; } Gets or sets the Equidistant Channel line color.
ShowAngle { get; set; } Gets or sets the Equidistant Channel angle.
ExtendToInfinity { get; set; } Defines if the Equidistant channel extends to infinity.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 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)
         {
         }
     }
 }

See Also


Last update: July 1, 2022

Comments