Skip to content

ChartArea.DrawElliottCorrection

method · ChartArea · cAlgo.API Since 5.10

DesktopCLICloud

Draws an Elliott Correction Wave (A-B-C).

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

DrawElliottCorrection(string name, ChartPoint origin, ChartPoint waveA, ChartPoint waveB, ChartPoint waveC, Color color)

Draws an Elliott Correction Wave (A-B-C).

ChartElliottCorrection DrawElliottCorrection(string name, ChartPoint origin, ChartPoint waveA, ChartPoint waveB, ChartPoint waveC, Color color)
chartArea.DrawElliottCorrection(name: str, origin: ChartPoint, waveA: ChartPoint, waveB: ChartPoint, waveC: ChartPoint, color: Color) -> ChartElliottCorrection

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.
color Color Color The Elliott Correction Wave lines color.

Returns ChartElliottCorrection — ChartElliottCorrection.

Examples

var correction = Chart.DrawElliottCorrection("correction", 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.Blue);
Print("Correction wave C at {0}", correction.WaveC.Y);
correction = api.Chart.DrawElliottCorrection("correction", 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.Blue)
api.Print(f"Correction wave C at {correction.WaveC.Y}")

DrawElliottCorrection(string name, ChartPoint origin, ChartPoint waveA, ChartPoint waveB, ChartPoint waveC, Color color, int thickness)

Draws an Elliott Correction Wave (A-B-C).

ChartElliottCorrection DrawElliottCorrection(string name, ChartPoint origin, ChartPoint waveA, ChartPoint waveB, ChartPoint waveC, Color color, int thickness)
chartArea.DrawElliottCorrection(name: str, origin: ChartPoint, waveA: ChartPoint, waveB: ChartPoint, waveC: ChartPoint, color: Color, thickness: int) -> ChartElliottCorrection

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.
color Color Color The Elliott Correction Wave lines color.
thickness int int The Elliott Correction Wave lines thickness.

Returns ChartElliottCorrection — ChartElliottCorrection.

Examples

var correction = Chart.DrawElliottCorrection("correction", 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.Blue, 2);
Print("Correction thickness: {0}", correction.Thickness);
correction = api.Chart.DrawElliottCorrection("correction", 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.Blue, 2)
api.Print(f"Correction thickness: {correction.Thickness}")

DrawElliottCorrection(string name, ChartPoint origin, ChartPoint waveA, ChartPoint waveB, ChartPoint waveC, Color color, int thickness, LineStyle lineStyle)

Draws an Elliott Correction Wave (A-B-C).

ChartElliottCorrection DrawElliottCorrection(string name, ChartPoint origin, ChartPoint waveA, ChartPoint waveB, ChartPoint waveC, Color color, int thickness, LineStyle lineStyle)
chartArea.DrawElliottCorrection(name: str, origin: ChartPoint, waveA: ChartPoint, waveB: ChartPoint, waveC: ChartPoint, color: Color, thickness: int, lineStyle: LineStyle) -> ChartElliottCorrection

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.
color Color Color The Elliott Correction Wave lines color.
thickness int int The Elliott Correction Wave lines thickness.
lineStyle LineStyle LineStyle The Elliott Correction Wave lines style.

Returns ChartElliottCorrection — ChartElliottCorrection.

Examples

var correction = Chart.DrawElliottCorrection("correction", 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.Blue, 2, LineStyle.Dots);
Print("Correction style: {0}", correction.LineStyle);
correction = api.Chart.DrawElliottCorrection("correction", 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.Blue, 2, LineStyle.Dots)
api.Print(f"Correction style: {correction.LineStyle}")