ChartEquidistantChannel
interface cAlgo.API
DesktopCLICloud
Represents the Equidistant Channel chart object. The tool that allows drawing two precisely parallel lines in any direction on the chart.
Environment behaviour
CLI — works differently. Created and kept with all its properties, but never drawn: the CLI displays no chart.
Cloud — works differently. Created and kept with all its properties, but never drawn: the cloud displays no chart.
Definition
public interface ChartEquidistantChannel
Namespace: cAlgo.API · Group: Drawings · Implements: ChartObject
Examples
using cAlgo.API;
namespace cAlgo
{
// A sample indicator for showing how to use Chart.DrawEquidistantChannel method
public partial 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)
{
}
}
}
import clr
clr.AddReference("cAlgo.API")
from cAlgo.API import *
class Test():
def initialize(self):
channel = api.Chart.DrawEquidistantChannel("EquidistantChannel", api.Chart.FirstVisibleBarIndex, api.Bars.LowPrices[api.Chart.FirstVisibleBarIndex], api.Chart.LastVisibleBarIndex, api.Bars.HighPrices[api.Chart.LastVisibleBarIndex], 20 * api.Symbol.PipSize, Color.Red)
channel.IsInteractive = True
{
"AccessRights": "None",
"TimeZone": "UTC",
"IsOverlay": true
}
Methods
| Name | Description |
|---|---|
CalculateY 2 overloadsDesktopCLIClouddouble | Calculates Y-axis value corresponding the specified bar index. |
Properties
| Name | Description |
|---|---|
ChannelHeightDesktopCLIClouddouble | Gets or sets the height of the Equidistant Channel. |
ColorDesktopCLICloudColor | Gets or sets the Equidistant Channel line color. |
ExtendToInfinityDesktopCLICloudbool | Defines if the Equidistant channel extends to infinity. |
LineStyleDesktopCLICloudLineStyle | Gets or sets the Equidistant channel line style. |
ShowAngleDesktopCLICloudbool | Gets or sets the Equidistant Channel angle. |
ThicknessDesktopCLICloudint | Gets or sets the Equidistant Channel line thickness. |
Time1DesktopCLICloudDateTime | Gets or sets the value 1 on the Time line. |
Time2DesktopCLICloudDateTime | Gets or sets the value 2 on the Time line. |
Y1DesktopCLIClouddouble | Gets or sets the value 1 on the Y-axis. |
Y2DesktopCLIClouddouble | Gets or sets the value 2 on the Y-axis. |
Inherited members
From ChartObject: Name, Comment, ObjectType, IsInteractive, IsLocked, IsHidden, ZIndex, IsAlive