Skip to content

ChartElliottTripleCombo

interface cAlgo.API Since 5.10

DesktopCLICloud

Represents the Elliott Triple Combo Wave (W-X-Y-X-Z) chart object - an extended complex correction over six pivots (origin and W, X, Y, X, Z). The two X legs are named X1 and X2.

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 ChartElliottTripleCombo

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

Examples

using cAlgo.API;

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

            Chart.DrawElliottTripleCombo("TripleCombo",
                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]),
                new ChartPoint(t[i + 4 * s], c[i + 4 * s]),
                new ChartPoint(t[i + 5 * s], c[i + 5 * s]),
                Color.Purple);
        }

        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) // 6
        t = api.Bars.OpenTimes
        c = api.Bars.ClosePrices
        tripleCombo = api.Chart.DrawElliottTripleCombo("TripleCombo",
            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]), ChartPoint(t[i + 4 * s], c[i + 4 * s]), ChartPoint(t[i + 5 * s], c[i + 5 * s]),
            Color.Purple)
        tripleCombo.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.
WaveX1DesktopCLICloudChartPoint Gets or sets the first wave X (X1) anchor point.
WaveX2DesktopCLICloudChartPoint Gets or sets the second wave X (X2) anchor point.
WaveYDesktopCLICloudChartPoint Gets or sets the wave Y anchor point.
WaveZDesktopCLICloudChartPoint Gets or sets the wave Z anchor point.

Inherited members

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

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

See also