---
title: 'How do I use the magnet, straighten a line or lock a drawing?'
description: 'The magnet button on the drawing toolbar snaps points to the candles: Off, Weak magnet or Strong magnet. Hold Shift to keep a line straight. Lock one drawing from its quick bar, or all of them with the toolbar lock.'
category: drawings-tools
kind: faq
keywords: [magnet, where is the magnet, snap to candles, snap to high low, lock rays to candles, lock drawing, lock all drawings, fix text in place, straighten trend line, straight line, make channel straight, 45 degrees, shift draw, freehand to trend line]
updatedAt: '2026-11-27'
popularity: 6
---

# How do I use the magnet, straighten a line or lock a drawing?

**The magnet snaps your points to the candles, `Shift` keeps a line straight, and the lock stops a drawing from moving.**

**The magnet.** On the drawing toolbar, the magnet sits below Measure.

1. Point at the magnet button and click the small arrow beside it (or right-click the button) to open its list.
2. Pick **Weak magnet** (snaps when you are close to an open, high, low or close), **Strong magnet** (always snaps) or **Off**.

A click on the button switches the magnet off, or back on at the strength you used last. Holding `Ctrl/Cmd` while you place a point flips it for that point. `Alt+Shift+M` switches it on and off.

**Straight lines.** Hold `Shift` while you draw or drag: a line snaps to flat, upright or 45°, a box becomes a square, and a drawing you move goes straight across or straight up and down.

**Locking.**

- **One drawing**: select it and press the lock on its quick bar, or right-click it and pick **Lock**.
- **Every drawing**: press the lock button on the drawing toolbar.

To pin text to a spot on the screen instead of a price and time, use **Anchored Text** or **Anchored Note**.

To turn a freehand stroke into a clean line, use **Draw by holding**: see [How do I turn off drawing by holding?](/learn/faq/drawings-tools/turn-off-draw-by-holding) More in [Drawing tools](/learn/charting/drawing-tools#the-magnet).
