> 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-back-offset-for-calculation.md).

# SetBackOffsetForCalculation

Sets the number of additional bars to include in calculations.

## Syntax

```typescript
SetBackOffsetForCalculation(offset: number): void
```

## Parameters

* `offset` - A number representing the additional bars to include in calculations.

## Return Value

This method does not return a value.

## Description

The `SetBackOffsetForCalculation` method sets the number of additional historical bars that should be included when calculating the indicator. This is useful for indicators that require more historical data than just the visible range to calculate correctly.

## Example

```typescript
// Include 50 additional bars in calculations
this.api.SetBackOffsetForCalculation(50)

// For indicators that need a lot of historical data
this.api.SetBackOffsetForCalculation(200)
```
