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

# GetSelectionPoints()

## Definition

Returns the chart object's data points where the user can interact. These points are used to visually indicate that the chart object is selected and allow the user to manipulate the chart object. This method is only called when **IsSelected** is set to true.

## Method Return Value

A collection of [Points](/developer/desktop-sdk/references/strategy/tradecollection/tradesperformance/points) representing the x- and y-coordinates of the chart object.

## Syntax

You must override the method using the following syntax:

`public override Point[] GetSelectionPoints(ChartControl chartControl, ChartScale chartScale)\{ \}`

## Method Parameters

| Parameter        | Description                                                                                            |
| ---------------- | ------------------------------------------------------------------------------------------------------ |
| **chartControl** | A [ChartControl](/developer/desktop-sdk/references/common/charts/chartcontrol) representing the x-axis |
| **chartScale**   | A [ChartScale](/developer/desktop-sdk/references/common/charts/chartscale) representing the y-axis     |

## Examples

```csharp
public override Point[] GetSelectionPoints(ChartControl chartControl, ChartScale chartScale)
{        
    ChartPanel chartPanel = chartControl.ChartPanels[chartScale.PanelIndex];
    // get the anchor point to be displayed on the drawing tool
    Point anchorPoint = Anchor.GetPoint(chartControl, chartPanel, chartScale, false);
    return new[] { anchorPoint };
}
```