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

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

Properties

Time1

Summary

Gets or sets the value 1 on the Time line.

Signature

1
public abstract DateTime Time1 {get; set;}

Return Value

DateTime

Time2

Summary

Gets or sets the value 2 on the Time line.

Signature

1
public abstract DateTime Time2 {get; set;}

Return Value

DateTime

Y1

Summary

Gets or sets the value 1 on the Y-axis.

Signature

1
public abstract double Y1 {get; set;}

Return Value

double

Y2

Summary

Gets or sets the value 2 on the Y-axis.

Signature

1
public abstract double Y2 {get; set;}

Return Value

double

ChannelHeight

Summary

Gets or sets the height of the Equidistant Channel.

Signature

1
public abstract double ChannelHeight {get; set;}

Return Value

double

Thickness

Summary

Gets or sets the Equidistant Channel line thickness.

Signature

1
public abstract int Thickness {get; set;}

Return Value

int

Related Tutorials

LineStyle

Summary

Gets or sets the Equidistant channel line style.

Signature

1
public abstract LineStyle LineStyle {get; set;}

Return Value

LineStyle

Color

Summary

Gets or sets the Equidistant Channel line color.

Signature

1
public abstract Color Color {get; set;}

Return Value

Color

ShowAngle

Summary

Gets or sets the Equidistant Channel angle.

Signature

1
public abstract bool ShowAngle {get; set;}

Return Value

bool

ExtendToInfinity

Summary

Defines if the Equidistant channel extends to infinity.

Signature

1
public abstract bool ExtendToInfinity {get; set;}

Return Value

bool