# TPenStyle

An enumeration that defines the style of lines used in indicators and chart objects.

## Values

| Value        | Description                                       |
| ------------ | ------------------------------------------------- |
| `SOLID`      | A solid line                                      |
| `DASH`       | A dashed line (- - -)                             |
| `DOT`        | A dotted line (. . .)                             |
| `DASHDOT`    | A line with alternating dashes and dots (- . - .) |
| `DASHDOTDOT` | A line with dashes and double dots (- . . - . .)  |

## Example Usage

```typescript
// Create a solid line level
this.api.AddLevel(70, TPenStyle.SOLID, 1, "#FF0000", 1);

// Create a dashed line level
this.api.AddLevel(30, TPenStyle.DASH, 1, "#00FF00", 1);

// Create a dotted middle line
this.api.AddLevel(50, TPenStyle.DOT, 1, "#808080", 0.7);
```


---

# 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/pen-style.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.
