---
id: "M:cAlgo.API.ChartPoint.#ctor(System.DateTime,System.Double)"
kind: "constructor"
type: "T:cAlgo.API.ChartPoint"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Drawings/ChartPoint/Constructor/"
---

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

# ChartPoint constructor

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

## ChartPoint(DateTime Time, double Y)

Represents a single chart anchor point - a time value on the X-axis and a Y-axis value.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public ChartPoint(DateTime Time, double Y)
```

Python:

```python
ChartPoint(Time: DateTime, Y: float)
```

### Parameters

- `Time` (`DateTime`, Python `DateTime`): The time value on the X-axis.
- `Y` (`double`, Python `float`): The Y-axis value.

Available since cAlgo.API 5.10.

### Examples

C#:

```csharp
var start = new ChartPoint(Bars.OpenTimes.Last(40), Bars.HighPrices.Last(40));
var waveA = new ChartPoint(Bars.OpenTimes.Last(30), Bars.LowPrices.Last(30));
var waveB = new ChartPoint(Bars.OpenTimes.Last(20), Bars.HighPrices.Last(20));
var waveC = new ChartPoint(Bars.OpenTimes.Last(10), Bars.LowPrices.Last(10));
Chart.DrawElliottCorrection("correction", start, waveA, waveB, waveC, Color.Blue);
Print("Wave C point: {0} at {1}", waveC.Time, waveC.Y);
```

Python:

```python
start = ChartPoint(api.Bars.OpenTimes.Last(40), api.Bars.HighPrices.Last(40))
waveA = ChartPoint(api.Bars.OpenTimes.Last(30), api.Bars.LowPrices.Last(30))
waveB = ChartPoint(api.Bars.OpenTimes.Last(20), api.Bars.HighPrices.Last(20))
waveC = ChartPoint(api.Bars.OpenTimes.Last(10), api.Bars.LowPrices.Last(10))
api.Chart.DrawElliottCorrection("correction", start, waveA, waveB, waveC, Color.Blue)
api.Print(f"Wave C point: {waveC.Time} at {waveC.Y}")
```

