Skip to content

ChartArea.DrawElliottTriangle

method · ChartArea · cAlgo.API Since 5.10

DesktopCLICloud

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

Environment behaviour

CLI — works differently. The object is created and returned, but never drawn: the CLI displays no chart.

Cloud — works differently. The object is created and returned, but never drawn: the cloud displays no chart.

Overloads

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).

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

Parameters

Name C# type Python type Description
name string 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 ChartPoint The origin (wave 0) anchor point.
waveA ChartPoint ChartPoint The wave A anchor point.
waveB ChartPoint ChartPoint The wave B anchor point.
waveC ChartPoint ChartPoint The wave C anchor point.
waveD ChartPoint ChartPoint The wave D anchor point.
waveE ChartPoint ChartPoint The wave E anchor point.
color Color Color The Elliott Triangle Wave lines color.

Returns ChartElliottTriangle — ChartElliottTriangle.

Examples

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);
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).

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

Parameters

Name C# type Python type Description
name string 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 ChartPoint The origin (wave 0) anchor point.
waveA ChartPoint ChartPoint The wave A anchor point.
waveB ChartPoint ChartPoint The wave B anchor point.
waveC ChartPoint ChartPoint The wave C anchor point.
waveD ChartPoint ChartPoint The wave D anchor point.
waveE ChartPoint ChartPoint The wave E anchor point.
color Color Color The Elliott Triangle Wave lines color.
thickness int int The Elliott Triangle Wave lines thickness.

Returns ChartElliottTriangle — ChartElliottTriangle.

Examples

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);
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).

ChartElliottTriangle DrawElliottTriangle(string name, ChartPoint origin, ChartPoint waveA, ChartPoint waveB, ChartPoint waveC, ChartPoint waveD, ChartPoint waveE, Color color, int thickness, LineStyle lineStyle)
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 C# type Python type Description
name string 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 ChartPoint The origin (wave 0) anchor point.
waveA ChartPoint ChartPoint The wave A anchor point.
waveB ChartPoint ChartPoint The wave B anchor point.
waveC ChartPoint ChartPoint The wave C anchor point.
waveD ChartPoint ChartPoint The wave D anchor point.
waveE ChartPoint ChartPoint The wave E anchor point.
color Color Color The Elliott Triangle Wave lines color.
thickness int int The Elliott Triangle Wave lines thickness.
lineStyle LineStyle LineStyle The Elliott Triangle Wave lines style.

Returns ChartElliottTriangle — ChartElliottTriangle.

Examples

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);
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}")