# Chart Drawing Tools

## Dev‑Indicator API <a href="#dev-indicator-api" id="dev-indicator-api"></a>

> **File:** `dev‑indicator.api.ts`\
> Large collection of drawing tools, patterns and annotations.

| Category                        | Methods                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Lines & Rays**                | [`trendLine`](/custom-indicators-docs/chart-drawing-tools/lines-and-rays/trendline.md), [`rayLine`](/custom-indicators-docs/chart-drawing-tools/lines-and-rays/rayline.md), [`infoLine`](/custom-indicators-docs/chart-drawing-tools/lines-and-rays/infoline.md), [`extendedLine`](/custom-indicators-docs/chart-drawing-tools/lines-and-rays/extendedline.md), [`trendAngle`](/custom-indicators-docs/chart-drawing-tools/lines-and-rays/trendangle.md), [`horizontalLine`](/custom-indicators-docs/chart-drawing-tools/lines-and-rays/horizontalline.md), [`horizontalRay`](/custom-indicators-docs/chart-drawing-tools/lines-and-rays/horizontalray.md), [`verticalLine`](/custom-indicators-docs/chart-drawing-tools/lines-and-rays/verticalline.md), [`crossLine`](/custom-indicators-docs/chart-drawing-tools/lines-and-rays/crossline.md) |
| **Channels**                    | `parallelChannel`, `regressionTrend`, `flatBottom`, `disjointChannel`, `pitchfan`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| **Pitchforks**                  | `insidePitchfork`, `pitchfork`, `schiffPitchfork`, `schiffPitchforkModified`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| **Fibonacci**                   | `fibRetracement`, `fibTrendExt`, `fibChannel`, `fibTimezone`, `fibSpeedResistFan`, `fibTrendTime`, `fibCircles`, `fibSpiral`, `fibSpeedResistArcs`, `fibWedge`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **Gann**                        | `gannbox`, `gannSquareFixed`, `gannboxFan`, `gannSquare`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| **Classic / Harmonic Patterns** | `xabcdPattern`, `cypherPattern`, `headAndShoulders`, `abcdPattern`, `trianglePattern`, `threeDiverPattern`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| **Elliott Waves**               | `elliottImpulseWave`, `elliottCorrection`, `elliottTriangleWave`, `elliottDoubleCombo`, `elliottTripleCombo`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| **Cycles & Time Lines**         | `cyclicLines`, `timeCycles`, `sineLine`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **Trading Tools**               | `longPosition`, `shortPosition`, `forecast`, `barsPattern`, `ghostFeed`, `projection`, `anchoredVWAP`, `fixedRangeVolumeProfile`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **Range Measurements**          | `priceRange`, `dateRange`, `dateAndPriceRange`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **Arrows**                      | `arrowUp`, `arrowDown`, `arrowLeft`, `arrowRight`, `arrow`, `arrowMarker`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **Geometric Shapes**            | `rectangle`, `rotatedRectangle`, `path`, `circle`, `ellipse`, `polyline`, `triangle`, `arcLine`, `curve`, `doubleCurve`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **Text / Annotations**          | `anchoredNote`, `note`, `callout`, `comment`, `priceLabel`, `priceNote`, `signpost`, `text`, `anchoredText`, `flag`, `icon`, `emoji`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |

> **Quick example**
>
> ```ts
> horizontalLine(
>  time(0),
>  resistance,
>  { linecolor: resistanceColor, linewidth: 2 },
>  "Resistance"
> );
> ```


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://custom-indicators.gitbook.io/custom-indicators-docs/chart-drawing-tools.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
