ChartElliottWaveBase
interface cAlgo.API Since 5.10
DesktopCLICloud
Represents the shared options of the Elliott Wave chart objects. An Elliott Wave is an ordered list of labelled pivots joined by a polyline; the wave degree drives the label notation.
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 ChartElliottWaveBase
Namespace: cAlgo.API · Group: Drawings · Implements: ChartObject
Examples
foreach (var wave in Chart.FindAllObjects<ChartElliottWaveBase>())
{
wave.Degree = ChartElliottWaveDegree.Intermediate;
wave.ShowLabels = true;
Print("Elliott wave: {0} | Type: {1} | Degree: {2}", wave.Name, wave.ObjectType, wave.Degree);
}
wave = api.Chart.DrawElliottCorrection("correction", ChartPoint(api.Bars.OpenTimes.Last(40), api.Bars.HighPrices.Last(40)), ChartPoint(api.Bars.OpenTimes.Last(30), api.Bars.LowPrices.Last(30)), ChartPoint(api.Bars.OpenTimes.Last(20), api.Bars.HighPrices.Last(20)), ChartPoint(api.Bars.OpenTimes.Last(10), api.Bars.LowPrices.Last(10)), Color.Blue)
wave.Degree = ChartElliottWaveDegree.Intermediate
wave.ShowLabels = True
api.Print(f"Elliott wave: {wave.Name} | Type: {wave.ObjectType} | Degree: {wave.Degree}")
Properties
| Name | Description |
|---|---|
ColorDesktopCLICloudColor | Gets or sets the chart object lines color. |
DegreeDesktopCLICloudChartElliottWaveDegree | Gets or sets the wave degree that drives the label notation and default color. |
LineStyleDesktopCLICloudLineStyle | Gets or sets the chart object lines style. |
ShowLabelsDesktopCLICloudbool | Gets or sets a value indicating whether the wave labels are displayed. Default is true. |
ThicknessDesktopCLICloudint | Gets or sets the chart object lines thickness. |
Inherited members
From ChartObject: Name, Comment, ObjectType, IsInteractive, IsLocked, IsHidden, ZIndex, IsAlive