> For the complete documentation index, see [llms.txt](https://fto-2.gitbook.io/fto-indicators-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fto-2.gitbook.io/fto-indicators-docs/configure_indicator/set-index-symbol.md).

# SetIndexSymbol

Sets a symbol to be used for drawing points in a buffer.

## Syntax

```typescript
SetIndexSymbol(bufferIndex: number, symbol: number, xoffs: number, yoffs: number): void
```

## Parameters

* `bufferIndex` - A number representing the index of the buffer.
* `symbol` - A number representing the symbol code to use.
* `xoffs` - A number representing the X-offset for the symbol.
* `yoffs` - A number representing the Y-offset for the symbol.

## Return Value

This method does not return a value.

## Description

The `SetIndexSymbol` method sets a symbol to be used for drawing points in a buffer.

## Example

```typescript
// Set buffer 0 to use symbol 217 (arrow up) with no offset
this.api.SetIndexSymbol(0, 217, 0, 0);

// Set buffer 1 to use symbol 218 (arrow down) with a slight offset
this.api.SetIndexSymbol(1, 218, 2, -2);
```
