# TObjectType

An enumeration that defines the different types of chart objects that can be created in the trading platform.

## Values

| Value               | Description                                      |
| ------------------- | ------------------------------------------------ |
| `ANY_OBJECT`        | Represents any type of chart object              |
| `V_LINE`            | A vertical line on the chart                     |
| `H_LINE`            | A horizontal line on the chart                   |
| `TREND_LINE`        | A trend line connecting two points               |
| `RAY`               | A ray extending from one point in a direction    |
| `POLYLINE`          | A line consisting of multiple connected segments |
| `FIBO_RETRACEMENT`  | Fibonacci retracement levels                     |
| `FIBO_TIME_ZONES`   | Fibonacci time zones                             |
| `FIBO_ARC`          | Fibonacci arcs                                   |
| `FIBO_FAN`          | Fibonacci fan lines                              |
| `ANDREWS_PITCHFORK` | Andrews' Pitchfork technical analysis tool       |
| `TEXT`              | Simple text object                               |
| `TEXT_LABEL`        | Text label with additional formatting options    |
| `RECTANGLE`         | A rectangular shape                              |
| `ELLIPSE`           | An elliptical shape                              |
| `TRIANGLE`          | A triangular shape                               |
| `FIBO_CHANNEL`      | Fibonacci channel                                |
| `LR_CHANNEL`        | Linear regression channel                        |
| `FIBO_EXTENSION`    | Fibonacci extension levels                       |
| `GANN_BOX`          | Gann box analysis tool                           |

## Example Usage

```typescript
// Create a trend line object
const trendLine = this.api.CreateChartObject(
  "MyTrendLine",
  TObjectType.TREND_LINE,
  0,
  startDate,
  startPrice,
  endDate,
  endPrice
);

// Create a text label
const label = this.api.CreateChartObject(
  "MyLabel",
  TObjectType.TEXT_LABEL,
  0,
  date,
  price
);
```


---

# 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://fto-2.gitbook.io/fto-indicators-docs/types/object-type.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.
