Skip to content

ChartElliottDoubleCombo

interface cAlgo.API Since 5.10

DesktopCLICloud

Represents the Elliott Double Combo Wave (W-X-Y) chart object - a complex correction over four pivots (origin and W, X, Y).

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 ChartElliottDoubleCombo

Namespace: cAlgo.API · Group: Drawings · Implements: ChartElliottWaveBase, ChartObject

Examples

using cAlgo.API;

namespace cAlgo
{
    // This sample shows how to use Chart.DrawElliottDoubleCombo method to draw an Elliott Double Combo Wave
    public partial class ElliottDoubleComboSample : Indicator
    {
        protected override void Initialize()
        {
            var i = Chart.FirstVisibleBarIndex;
            var s = (Chart.LastVisibleBarIndex - i) / 4;
            var t = Bars.OpenTimes;
            var c = Bars.ClosePrices;

            Chart.DrawElliottDoubleCombo("DoubleCombo",
                new ChartPoint(t[i], c[i]),
                new ChartPoint(t[i + s], c[i + s]),
                new ChartPoint(t[i + 2 * s], c[i + 2 * s]),
                new ChartPoint(t[i + 3 * s], c[i + 3 * s]),
                Color.Orange);
        }

        public override void Calculate(int index)
        {
        }
    }
}
import clr
clr.AddReference("cAlgo.API")

from cAlgo.API import *

class Test():
    def initialize(self):
        i = api.Chart.FirstVisibleBarIndex
        s = (api.Chart.LastVisibleBarIndex - i) // 4
        t = api.Bars.OpenTimes
        c = api.Bars.ClosePrices
        doubleCombo = api.Chart.DrawElliottDoubleCombo("DoubleCombo",
            ChartPoint(t[i], c[i]), ChartPoint(t[i + s], c[i + s]), ChartPoint(t[i + 2 * s], c[i + 2 * s]), ChartPoint(t[i + 3 * s], c[i + 3 * s]),
            Color.Orange)
        doubleCombo.IsInteractive = True
{
  "AccessRights": "None",
  "TimeZone": "UTC",
  "IsOverlay": true
}

Properties

Name Description
OriginDesktopCLICloudChartPoint Gets or sets the origin (wave 0) anchor point.
WaveWDesktopCLICloudChartPoint Gets or sets the wave W anchor point.
WaveXDesktopCLICloudChartPoint Gets or sets the wave X anchor point.
WaveYDesktopCLICloudChartPoint Gets or sets the wave Y anchor point.

Inherited members

From ChartElliottWaveBase: Degree, ShowLabels, Thickness, Color, LineStyle

From ChartObject: Name, Comment, ObjectType, IsInteractive, IsLocked, IsHidden, ZIndex, IsAlive

See also