Skip to content

ChartElliottDoubleCombo

Summary

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

Signature

1
public abstract interface ChartElliottDoubleCombo

Namespace

cAlgo.API

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 using cAlgo.API;
 namespace cAlgo
 {
     // This sample shows how to use Chart.DrawElliottDoubleCombo method to draw an Elliott Double Combo Wave
     [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
     public 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)
         {
         }
     }
 }
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 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

See Also

Properties

Origin

Summary

Gets or sets the origin (wave 0) anchor point.

Signature

1
public abstract ChartPoint Origin {get; set;}

Return Value

ChartPoint

WaveW

Summary

Gets or sets the wave W anchor point.

Signature

1
public abstract ChartPoint WaveW {get; set;}

Return Value

ChartPoint

WaveX

Summary

Gets or sets the wave X anchor point.

Signature

1
public abstract ChartPoint WaveX {get; set;}

Return Value

ChartPoint

WaveY

Summary

Gets or sets the wave Y anchor point.

Signature

1
public abstract ChartPoint WaveY {get; set;}

Return Value

ChartPoint