> ## Documentation Index
> Fetch the complete documentation index at: https://gocharting.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# line constants

> Reference for the 6 constants of the line namespace: line.style_arrow_both, line.style_arrow_left, line.style_arrow_right, line.style_dashed and 2 more, each with its definition and an example.

> [!NOTE]
>
> Language version: 2 · Reference version: 2.7 · Date: 2026-10-25 · Compiler build: df7b3b14 · Namespace: line · Entries: 6

## `line.style_arrow_both` (constant)

**Definition**

Line style with arrows on both points.

**Type**

`const string`

**Example**

```lipi wrap theme={"languages":{"custom":["/languages/lipi.json","/languages/lipi-invalid.json"]}}
//@lipi=2
indicator("line.style_arrow_both Example", overlay=true)
if barstate.islast {
    line.new(bar_index[20], close[20], bar_index, close, color=color.blue, width=2, style=line.style_arrow_both)
}
```

## `line.style_arrow_left` (constant)

**Definition**

Line style with an arrow on the first point.

**Type**

`const string`

**Example**

```lipi wrap theme={"languages":{"custom":["/languages/lipi.json","/languages/lipi-invalid.json"]}}
//@lipi=2
indicator("line.style_arrow_left Example", overlay=true)
if barstate.islast {
    line.new(bar_index[20], close[20], bar_index, close, color=color.blue, width=2, style=line.style_arrow_left)
}
```

## `line.style_arrow_right` (constant)

**Definition**

Line style with an arrow on the second point.

**Type**

`const string`

**Example**

```lipi wrap theme={"languages":{"custom":["/languages/lipi.json","/languages/lipi-invalid.json"]}}
//@lipi=2
indicator("line.style_arrow_right Example", overlay=true)
if barstate.islast {
    line.new(bar_index[20], close[20], bar_index, close, color=color.blue, width=2, style=line.style_arrow_right)
}
```

## `line.style_dashed` (constant)

**Definition**

Dashed line style for line.new / line.set\_style.

**Type**

`const string`

**Example**

```lipi theme={"languages":{"custom":["/languages/lipi.json","/languages/lipi-invalid.json"]}}
//@lipi=2
indicator("line.style_dashed Example", overlay=true)
if barstate.islast {
    line.new(bar_index[20], close[20], bar_index, close, color=color.blue, width=2, style=line.style_dashed)
}
```

## `line.style_dotted` (constant)

**Definition**

Dotted line style for line.new / line.set\_style.

**Type**

`const string`

**Example**

```lipi theme={"languages":{"custom":["/languages/lipi.json","/languages/lipi-invalid.json"]}}
//@lipi=2
indicator("line.style_dotted Example", overlay=true)
if barstate.islast {
    line.new(bar_index[20], close[20], bar_index, close, color=color.blue, width=2, style=line.style_dotted)
}
```

## `line.style_solid` (constant)

**Definition**

Solid line style for line.new / line.set\_style.

**Type**

`const string`

**Example**

```lipi theme={"languages":{"custom":["/languages/lipi.json","/languages/lipi-invalid.json"]}}
//@lipi=2
indicator("line.style_solid Example", overlay=true)
if barstate.islast {
    line.new(bar_index[20], close[20], bar_index, close, color=color.blue, width=2, style=line.style_solid)
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.