> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# GetPoint()

## Definition

Returns a chart anchor's data point in device pixels

## Method Return Value

A **Point** structure; a point value in device pixels for a chart's given panel & scale

## Syntax

`\<chartanchor\>.GetPoint(ChartControl chartControl, ChartPanel chartPanel, ChartScale, bool pixelAlign)`

## Method Parameters

| Parameter        | Description                                                                                                  |
| ---------------- | ------------------------------------------------------------------------------------------------------------ |
| **chartControl** | A [ChartControl](/developer/desktop-sdk/references/common/charts/chartcontrol) representing the x-axis       |
| **chartPanel**   | A [ChartPanel](/developer/desktop-sdk/references/common/charts/chartpanel) representing a panel of the chart |
| **chartScale**   | A [ChartScale](/developer/desktop-sdk/references/common/charts/chartscale) representing the y-axis           |
| **pixelAlign**   | An optional bool determining if the data point should be rounded to the closest .5 pixel point               |

## Examples

```csharp
//gets the chart anchor's data points
Point anchorPoint = MyAnchor.GetPoint(chartControl, chartPanel, chartScale);
```