---
id: "M:cAlgo.API.ChartArea.DrawElliottTriangle(System.String,cAlgo.API.ChartPoint,cAlgo.API.ChartPoint,cAlgo.API.ChartPoint,cAlgo.API.ChartPoint,cAlgo.API.ChartPoint,cAlgo.API.ChartPoint,cAlgo.API.Color)"
kind: "method"
type: "T:cAlgo.API.ChartArea"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/ChartArea/DrawElliottTriangle/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# ChartArea.DrawElliottTriangle

Member of [ChartArea](https://help.ctrader.com/ctrader-algo/references/Chart/ChartArea/index.md).

## DrawElliottTriangle(string name, ChartPoint origin, ChartPoint waveA, ChartPoint waveB, ChartPoint waveC, ChartPoint waveD, ChartPoint waveE, Color color)

Draws an Elliott Triangle Wave (A-B-C-D-E).

Environments: Desktop supported · CLI works differently · Cloud works differently.

- CLI: The object is created and returned, but never drawn: the CLI displays no chart.
- Cloud: The object is created and returned, but never drawn: the cloud displays no chart.

C#:

```csharp
ChartElliottTriangle DrawElliottTriangle(string name, ChartPoint origin, ChartPoint waveA, ChartPoint waveB, ChartPoint waveC, ChartPoint waveD, ChartPoint waveE, Color color)
```

Python:

```python
chartArea.DrawElliottTriangle(name: str, origin: ChartPoint, waveA: ChartPoint, waveB: ChartPoint, waveC: ChartPoint, waveD: ChartPoint, waveE: ChartPoint, color: Color) -> ChartElliottTriangle
```

### Parameters

- `name` (`string`, Python `str`): The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name.
- `origin` (`ChartPoint`, Python `ChartPoint`): The origin (wave 0) anchor point.
- `waveA` (`ChartPoint`, Python `ChartPoint`): The wave A anchor point.
- `waveB` (`ChartPoint`, Python `ChartPoint`): The wave B anchor point.
- `waveC` (`ChartPoint`, Python `ChartPoint`): The wave C anchor point.
- `waveD` (`ChartPoint`, Python `ChartPoint`): The wave D anchor point.
- `waveE` (`ChartPoint`, Python `ChartPoint`): The wave E anchor point.
- `color` (`Color`, Python `Color`): The Elliott Triangle Wave lines color.

### Returns

`ChartElliottTriangle` — ChartElliottTriangle.

Available since cAlgo.API 5.10.

### Examples

C#:

```csharp
var triangle = Chart.DrawElliottTriangle("elliottTriangle", new ChartPoint(Bars.OpenTimes.Last(60), Bars.HighPrices.Last(60)), new ChartPoint(Bars.OpenTimes.Last(50), Bars.LowPrices.Last(50)), new ChartPoint(Bars.OpenTimes.Last(40), Bars.HighPrices.Last(40)), new ChartPoint(Bars.OpenTimes.Last(30), Bars.LowPrices.Last(30)), new ChartPoint(Bars.OpenTimes.Last(20), Bars.HighPrices.Last(20)), new ChartPoint(Bars.OpenTimes.Last(10), Bars.LowPrices.Last(10)), Color.Green);
Print("Triangle wave E at {0}", triangle.WaveE.Y);
```

Python:

```python
triangle = api.Chart.DrawElliottTriangle("elliottTriangle", ChartPoint(api.Bars.OpenTimes.Last(60), api.Bars.HighPrices.Last(60)), ChartPoint(api.Bars.OpenTimes.Last(50), api.Bars.LowPrices.Last(50)), 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.Green)
api.Print(f"Triangle wave E at {triangle.WaveE.Y}")
```

## DrawElliottTriangle(string name, ChartPoint origin, ChartPoint waveA, ChartPoint waveB, ChartPoint waveC, ChartPoint waveD, ChartPoint waveE, Color color, int thickness)

Draws an Elliott Triangle Wave (A-B-C-D-E).

Environments: Desktop supported · CLI works differently · Cloud works differently.

- CLI: The object is created and returned, but never drawn: the CLI displays no chart.
- Cloud: The object is created and returned, but never drawn: the cloud displays no chart.

C#:

```csharp
ChartElliottTriangle DrawElliottTriangle(string name, ChartPoint origin, ChartPoint waveA, ChartPoint waveB, ChartPoint waveC, ChartPoint waveD, ChartPoint waveE, Color color, int thickness)
```

Python:

```python
chartArea.DrawElliottTriangle(name: str, origin: ChartPoint, waveA: ChartPoint, waveB: ChartPoint, waveC: ChartPoint, waveD: ChartPoint, waveE: ChartPoint, color: Color, thickness: int) -> ChartElliottTriangle
```

### Parameters

- `name` (`string`, Python `str`): The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name.
- `origin` (`ChartPoint`, Python `ChartPoint`): The origin (wave 0) anchor point.
- `waveA` (`ChartPoint`, Python `ChartPoint`): The wave A anchor point.
- `waveB` (`ChartPoint`, Python `ChartPoint`): The wave B anchor point.
- `waveC` (`ChartPoint`, Python `ChartPoint`): The wave C anchor point.
- `waveD` (`ChartPoint`, Python `ChartPoint`): The wave D anchor point.
- `waveE` (`ChartPoint`, Python `ChartPoint`): The wave E anchor point.
- `color` (`Color`, Python `Color`): The Elliott Triangle Wave lines color.
- `thickness` (`int`, Python `int`): The Elliott Triangle Wave lines thickness.

### Returns

`ChartElliottTriangle` — ChartElliottTriangle.

Available since cAlgo.API 5.10.

### Examples

C#:

```csharp
var triangle = Chart.DrawElliottTriangle("elliottTriangle", new ChartPoint(Bars.OpenTimes.Last(60), Bars.HighPrices.Last(60)), new ChartPoint(Bars.OpenTimes.Last(50), Bars.LowPrices.Last(50)), new ChartPoint(Bars.OpenTimes.Last(40), Bars.HighPrices.Last(40)), new ChartPoint(Bars.OpenTimes.Last(30), Bars.LowPrices.Last(30)), new ChartPoint(Bars.OpenTimes.Last(20), Bars.HighPrices.Last(20)), new ChartPoint(Bars.OpenTimes.Last(10), Bars.LowPrices.Last(10)), Color.Green, 2);
Print("Triangle thickness: {0}", triangle.Thickness);
```

Python:

```python
triangle = api.Chart.DrawElliottTriangle("elliottTriangle", ChartPoint(api.Bars.OpenTimes.Last(60), api.Bars.HighPrices.Last(60)), ChartPoint(api.Bars.OpenTimes.Last(50), api.Bars.LowPrices.Last(50)), 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.Green, 2)
api.Print(f"Triangle thickness: {triangle.Thickness}")
```

## DrawElliottTriangle(string name, ChartPoint origin, ChartPoint waveA, ChartPoint waveB, ChartPoint waveC, ChartPoint waveD, ChartPoint waveE, Color color, int thickness, LineStyle lineStyle)

Draws an Elliott Triangle Wave (A-B-C-D-E).

Environments: Desktop supported · CLI works differently · Cloud works differently.

- CLI: The object is created and returned, but never drawn: the CLI displays no chart.
- Cloud: The object is created and returned, but never drawn: the cloud displays no chart.

C#:

```csharp
ChartElliottTriangle DrawElliottTriangle(string name, ChartPoint origin, ChartPoint waveA, ChartPoint waveB, ChartPoint waveC, ChartPoint waveD, ChartPoint waveE, Color color, int thickness, LineStyle lineStyle)
```

Python:

```python
chartArea.DrawElliottTriangle(name: str, origin: ChartPoint, waveA: ChartPoint, waveB: ChartPoint, waveC: ChartPoint, waveD: ChartPoint, waveE: ChartPoint, color: Color, thickness: int, lineStyle: LineStyle) -> ChartElliottTriangle
```

### Parameters

- `name` (`string`, Python `str`): The chart object name - a unique name that can be only used once for a chart area. If duplicated, the chart object will be replaced with a new one of the same name.
- `origin` (`ChartPoint`, Python `ChartPoint`): The origin (wave 0) anchor point.
- `waveA` (`ChartPoint`, Python `ChartPoint`): The wave A anchor point.
- `waveB` (`ChartPoint`, Python `ChartPoint`): The wave B anchor point.
- `waveC` (`ChartPoint`, Python `ChartPoint`): The wave C anchor point.
- `waveD` (`ChartPoint`, Python `ChartPoint`): The wave D anchor point.
- `waveE` (`ChartPoint`, Python `ChartPoint`): The wave E anchor point.
- `color` (`Color`, Python `Color`): The Elliott Triangle Wave lines color.
- `thickness` (`int`, Python `int`): The Elliott Triangle Wave lines thickness.
- `lineStyle` (`LineStyle`, Python `LineStyle`): The Elliott Triangle Wave lines style.

### Returns

`ChartElliottTriangle` — ChartElliottTriangle.

Available since cAlgo.API 5.10.

### Examples

C#:

```csharp
var triangle = Chart.DrawElliottTriangle("elliottTriangle", new ChartPoint(Bars.OpenTimes.Last(60), Bars.HighPrices.Last(60)), new ChartPoint(Bars.OpenTimes.Last(50), Bars.LowPrices.Last(50)), new ChartPoint(Bars.OpenTimes.Last(40), Bars.HighPrices.Last(40)), new ChartPoint(Bars.OpenTimes.Last(30), Bars.LowPrices.Last(30)), new ChartPoint(Bars.OpenTimes.Last(20), Bars.HighPrices.Last(20)), new ChartPoint(Bars.OpenTimes.Last(10), Bars.LowPrices.Last(10)), Color.Green, 2, LineStyle.Dots);
Print("Triangle style: {0}", triangle.LineStyle);
```

Python:

```python
triangle = api.Chart.DrawElliottTriangle("elliottTriangle", ChartPoint(api.Bars.OpenTimes.Last(60), api.Bars.HighPrices.Last(60)), ChartPoint(api.Bars.OpenTimes.Last(50), api.Bars.LowPrices.Last(50)), 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.Green, 2, LineStyle.Dots)
api.Print(f"Triangle style: {triangle.LineStyle}")
```

