> For the complete documentation index, see [llms.txt](https://help.topstepx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.topstepx.com/components/tradingview-tm-charts/chart-drawing-tools/snap-drawings-to-price-bars.md). Agents can also search and read this documentation through its [MCP server](https://help.topstepx.com/~gitbook/mcp).

# Snap drawings to price bars

You can snap drawings to the nearest OHLC price values on the bars by enabling "Magnet Mode".

To temporarily enable the magnet feature:

1. Select your preferred drawing tool.
2. Click the Magnet tool or Hold CTRL (or Command on Mac) and begin drawing.

<figure><img src="https://2549854448-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffj55gt7IahlmBVVgmbnQ%2Fuploads%2F7XwM5tQAmRosgi9STZji%2FGIF%20Recording%202024-06-23%20at%203.43.43%20PM.gif?alt=media&amp;token=5a6a3d20-9d18-40db-a4e3-9743ed7d8d56" alt=""><figcaption></figcaption></figure>

When magnet mode is enabled, you can temporarily disable it by holding CTRL (or Command on Mac).

You can activate or deactivate magnet mode while editing drawings on the chart by holding CTRL (or Command on Mac).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.topstepx.com/components/tradingview-tm-charts/chart-drawing-tools/snap-drawings-to-price-bars.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
