# Drawing tools

Source: https://tapehawk.com/docs/chart/drawing-tools

> Place lines, shapes and notes on the chart, style and lock them, undo mistakes, and know where drawings are kept.

The drawing tools are a strip down the left edge of the chart (on a phone, behind the pencil in the bottom
bar). Each button is a family of tools: the button arms the family's current tool, and the small arrow beside
it opens the rest. The strip remembers which tool you last used in each family. They need you to be signed in;
for visitors every tool shows a padlock, and clicking one says Sign in to use the drawing tools

## The tools

**Lines**

| Tool                | Points | Use it for                                                 |
| ------------------- | :----: | ---------------------------------------------------------- |
| **Trend line**      |    2   | A line between two points; can extend past either end      |
| **Ray**             |    2   | A line from a point, through a second, onward              |
| **Extended line**   |    2   | A line running across the whole chart                      |
| **Info line**       |    2   | A line that reads out its price change, duration and angle |
| **Trend angle**     |    2   | A line that reads out its angle                            |
| **Horizontal line** |    1   | A price level across the whole chart                       |
| **Horizontal ray**  |    1   | A price level from a point onward to the right             |
| **Vertical line**   |    1   | A moment in time                                           |
| **Cross line**      |    1   | A price and a moment together                              |

**Channels and pitchforks**

| Tool                 | Points | Use it for                                                                                    |
| -------------------- | :----: | --------------------------------------------------------------------------------------------- |
| **Parallel channel** |    3   | Two parallel lines: a base line, then the width                                               |
| **Regression trend** |    2   | A best-fit line through the closes between two moments, with bands at two standard deviations |
| **Pitchfork**        |    3   | Median line and tines from a pivot and two reactions                                          |
| **Schiff pitchfork** |    3   | The same, with the median starting halfway up to the first reaction                           |

**Fibonacci and Gann**

| Tool                          | Points | Use it for                                          |
| ----------------------------- | :----: | --------------------------------------------------- |
| **Fibonacci**                 |    2   | Retracement levels between a high and a low         |
| **Trend-based Fib extension** |    3   | A move projected from a third point                 |
| **Fib channel**               |    3   | A base line repeated at Fibonacci ratios of a width |
| **Fib time zones**            |    2   | Vertical lines at Fibonacci multiples of a distance |
| **Fib speed resistance fan**  |    2   | Rays through Fibonacci ratios of a move             |
| **Gann fan**                  |    2   | Rays at the Gann ratios, 8/1 to 1/8                 |

**Patterns**

| Tool                        | Points | Use it for                                      |
| --------------------------- | :----: | ----------------------------------------------- |
| **XABCD pattern**           |    5   | A harmonic pattern, with its leg ratios printed |
| **ABCD pattern**            |    4   | An AB=CD move, with its ratios printed          |
| **Head and shoulders**      |    7   | Shoulders, head and neckline                    |
| **Elliott impulse wave**    |    6   | Waves 0 to 5                                    |
| **Elliott correction wave** |    4   | Waves 0, A, B, C                                |

**Forecasting and measuring**

| Tool                           | Points | Use it for                                                                                               |
| ------------------------------ | :----: | -------------------------------------------------------------------------------------------------------- |
| **Long position**              |    2   | A trade plan: entry, then target; the stop starts level with it, and you drag it. Prints the risk/reward |
| **Short position**             |    2   | The same, for a short                                                                                    |
| **Price range**                |    2   | A price difference, in price and percent                                                                 |
| **Date range**                 |    2   | A span of time, in time and bars                                                                         |
| **Date and price range**       |    2   | Both at once                                                                                             |
| **Anchored VWAP**              |    1   | A volume-weighted average price from one bar to the newest — see below                                   |
| **Fixed range volume profile** |    2   | The volume traded at each price between two moments — see below                                          |

**Shapes and brushes**

| Tool                | Points | Use it for                                        |
| ------------------- | :----: | ------------------------------------------------- |
| **Brush**           |  drag  | A freehand stroke                                 |
| **Highlighter**     |  drag  | A wide, translucent freehand stroke               |
| **Arrow**           |    2   | An arrow from one point to another                |
| **Arrow mark up**   |    1   | A solid arrow pointing up at a spot               |
| **Arrow mark down** |    1   | A solid arrow pointing down at a spot             |
| **Rectangle**       |    2   | A zone between two corners                        |
| **Circle**          |    2   | A true circle: centre, then rim                   |
| **Ellipse**         |    2   | An ellipse inside two corners                     |
| **Triangle**        |    3   | A triangle                                        |
| **Path**            |   2+   | Connected lines ending in an arrow                |
| **Polyline**        |   2+   | Connected lines                                   |
| **Curve**           |    3   | A curve: two ends, then a point it passes through |

**Text and notes**

| Tool            | Points | Use it for                                            |
| --------------- | :----: | ----------------------------------------------------- |
| **Text**        |    1   | A note of up to 200 characters                        |
| **Callout**     |    2   | A note in a box, with a line to the spot it refers to |
| **Price label** |    1   | A tag showing the price it sits on                    |
| **Flag**        |    1   | A flag planted on a bar                               |

After the tools come the magnet, **Stay in drawing mode**, **Lock all drawings**,
**Hide all drawings**, the objects list, and **Clear all objects**.

## Place an object

1. Click a tool. The pointer becomes a crosshair.
2. Click the chart once for each point the tool needs, or press, drag and release to place the next point in
   one movement. For **Brush** and **Highlighter**, hold the
   button down and draw. For **Path** and **Polyline**, keep
   clicking, then click the last point again or press <kbd>Enter</kbd> to finish. For tools that carry a note,
   type it and press **Done** or <kbd>Enter</kbd>.
3. The object is placed and the tool is released. Click the tool again for another one, or turn on
   **Stay in drawing mode** to keep the tool armed.

Press <kbd>Esc</kbd> to give up on an object halfway through, or click the armed tool again.

### Anchored VWAP

**Anchored VWAP** averages typical price, weighted by volume, from the bar you click to the
newest bar. It needs every bar since its anchor: if the anchor is older than the history loaded on the chart,
the line is replaced by `VWAP —` at the top left until you scroll back far enough.
**Regression trend** follows the same rule and draws nothing until its whole range is loaded.

### Magnet

With the magnet on, every point you place lands on the open, high, low or close of the bar under the
pointer — both the price and the time snap, so the point sits exactly on the candle. Turn it off to place
points freely. A heatmap panel has no candles to snap to, so the magnet is unavailable there:

Magnet needs candles; a heatmap panel has none

## Change an object

**Click an object to select it.** Drag it to move it, or drag one of its handles to reshape it. A gear
appears beside the selected object; click it for the style editor:

![A blue trend line selected on a candles chart, with square handles at both ends and its style editor open: colour, width, dashed, fill, and buttons to lock, hide, duplicate and delete.](https://tapehawk.com/docs/shots/drawing-style.webp)

* **Colour**, **Width**, **Dashed**
  and **Fill** (how opaque the inside of a rectangle or channel is);
* **Lock** — a locked object cannot be selected or moved on the chart, so dragging
  over it pans the chart instead;
* **Hide** — the object stays saved but is not drawn;
* **Duplicate** — a copy on top of the original, selected, ready to drag away;
* **Delete**.

Click an empty part of the chart to deselect.

### The objects list

Locked and hidden objects cannot be clicked on the chart, so the list button in the tool strip opens
**Objects**: every object on this symbol, top-most first, each with show or hide,
lock or unlock, and delete. Click an object's name to select it. The list is on the desktop only.

## Fixed range volume profile

**Fixed range volume profile** takes two points and draws, inside the stretch of time between them, how much
volume traded at each price — the same histogram, POC and value area as the
[Volume Profile](https://tapehawk.com/docs/indicators/vprofile) indicator, over a range you choose instead of a session. The range runs
from the first point's candle to the second point's candle, both included. The points' prices only place the
box until the volume loads; the profile covers every price traded in the range.

Its style editor adds the profile's own settings: **Price step (ticks)**,
**Value area (%)**, **Width (% of range)**, **Bar type**,
**Colour mode**, **Volume nodes**, and
**Level lines** — **Across the range**, **Inside the profile**, or
**On to the right edge** to carry the POC and value area forward. **Colour** is
the colour of the POC and value-area lines.

* The volume comes from the stored order flow: the last 30 days, up to 32 days in one range. A range outside that,
  or on a symbol whose order flow is not stored, says so inside the box instead of drawing nothing.
* When the stored bars start after or end before the range, a line inside the box says what the profile covers.
* A range that reaches the current candle refreshes once a minute; the candle still forming is not included until
  it closes.
* Moving or resizing the range loads the new one once it has held still for a moment.
* Without a fill, only the range's two edges and the histogram grab the drawing; the rest of the box pans the
  chart as usual.

## Keyboard

| Keys                                                                          | What happens                                                            |
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| <kbd>Esc</kbd>                                                                | Cancels the object you are placing, or deselects, and releases the tool |
| <kbd>Delete</kbd> or <kbd>Backspace</kbd>                                     | Deletes the selected object                                             |
| <kbd>Ctrl</kbd> <kbd>Z</kbd>                                                  | Undoes the last change on this symbol's drawings                        |
| <kbd>Ctrl</kbd> <kbd>Shift</kbd> <kbd>Z</kbd> or <kbd>Ctrl</kbd> <kbd>Y</kbd> | Redoes it                                                               |

On a Mac, <kbd>⌘</kbd> works in place of <kbd>Ctrl</kbd>. Shortcuts are ignored while you are typing in a text
box.

Undo and redo act on the symbol of the **selected** object, so select any object on that chart first:

* Deleting an object also clears the selection. To undo a delete, select another object on the same symbol,
  then press <kbd>Ctrl</kbd> <kbd>Z</kbd>. Deleting the last object on a symbol, or
  **Clear all objects** (which asks first), leaves nothing to select. To undo it anyway, pick
  a two-point tool such as **Trend line**, click the chart once, press
  <kbd>Ctrl</kbd> <kbd>Z</kbd>, then <kbd>Esc</kbd> to drop the line you started.
* Undo goes back up to 20 steps, for the five symbols you edited most recently, until the page is reloaded.

During a [bar replay](https://tapehawk.com/docs/chart/replay), <kbd>Esc</kbd> that deselects an object or releases a tool also
ends the replay.

## Where drawings are kept

Drawings belong to a **symbol on a venue**, not to a panel or a layout. A line drawn on BTCUSDT appears on
every panel showing BTCUSDT — whatever its chart type, timeframe or layout — and on every device you sign in
on. Because objects are stored by price and time, they stay on the same prices and moments when you change
the timeframe.

Changes save by themselves a moment after you make them. If another tab has saved newer drawings for the
same symbol, or cleared it, this tab loads what that tab saved instead of saving over it, and says
Drawings changed in another tab — reloaded The change this tab was trying to save is dropped; your next change
saves normally.

### Limits

* **One symbol** holds up to 300 objects, within a size cap that long notes reach sooner. Past either, changes
  on that symbol stop saving and the chart says These drawings are too large — delete some objects before adding more Deleting objects resumes
  saving; adding more does not.
* **Your account** keeps drawings for up to 50 symbols. A symbol counts from the first object you draw on it
  until its last object is deleted or you clear it. Past 50, drawings on a symbol that has none yet are not
  saved and the chart says Drawing storage limit reached — clear drawings on another symbol Clear the drawings on another symbol, then change
  something on this one: it saves again.
