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

# CrosshairType

## Definition

Indicates the **Cross Hair** type currently enabled on the chart.

## Property Value

An enum specifying the type of Cross Hair currently enabled on the chart. Possible values are listed below:

| Property           | Description                                    |
| ------------------ | ---------------------------------------------- |
| Local              | The local (single-chart) Cross Hair is enabled |
| Global             | Global Cross Hair                              |
| GlobalNoTimeScroll | Global Cross Hair (No Time Scroll) is enabled  |

## Syntax

`\<chartcontrol\>.CrosshairType`

## Examples

```csharp
protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
   // Print a message if the user enables the Global Cross Hair without time scrolling
   if (chartControl.CrosshairType == CrosshairType.GlobalNoTimeScroll)
       Print("It is recommended to enable Global Cross Hair time scrolling with this indicator");
}
```

In the image below, **CrosshairType** reveals that Global Cross Hair (No Time Scroll) is enabled on the chart.

![ChartControl\_CrosshairType](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/ninjatrader-public.docs.buildwithfern.com/4f1da8812561d340e489322b2784bb289658aa9b2092886db2240c7867f441ff/docs/assets/developer/desktop-sdk/references/crosshairtype-chartcontrol-crosshairtype.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260729%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260729T062348Z&X-Amz-Expires=604800&X-Amz-Signature=529b39eca5872ffd4c02b0b2516216c4dccdc23952626771fb95a3c7fa47f52b&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)