# LinRegIntercept

#### Description <a href="#description_50" id="description_50"></a>

The Linear Regression Intercept outputs the value of the regression constant, i.e. the mathematical intersection of where the regression line meets the price axis.

A straight line can be accurately determined with the help of the slope and intercept values.

See [*Linear Regression*](https://agenatrader.github.io/AgenaIndicator-documentation/indicators_oscillators/#linearregression), [*R-Squared*](https://agenatrader.github.io/AgenaIndicator-documentation/indicators_oscillators/#r-squared) [*LinRegSlope*](https://agenatrader.github.io/AgenaIndicator-documentation/indicators_oscillators/#linregslope).

#### Interpretation <a href="#interpretation_24" id="interpretation_24"></a>

The indicator is not used by itself, but is simply a component of trading systems that analyze trade trends with the help of the linear regression.

#### Usage <a href="#usage_51" id="usage_51"></a>

```csharp
LinRegIntercept(int period)
LinRegIntercept(IDataSeries inSeries, int period)
LinRegIntercept(int period)[int barsAgo]
LinRegIntercept(IDataSeries inSeries, int period)[int barsAgo]
```

#### Return value <a href="#return-value_50" id="return-value_50"></a>

**double**

When using this method with an index (e.g. **LinRegIntercept**(14)\[**int** barsAgo] ), the value of the indicator will be issued for the referenced bar.

#### Parameters <a href="#parameters_45" id="parameters_45"></a>

inSeries Input data series for the indicator

period Number of bars included in the calculations

#### Visualization <a href="#visualization_46" id="visualization_46"></a>

![LinRegIntercept](https://agenatrader.github.io/AgenaIndicator-documentation/media/LinRegIntercept.jpg)

#### Example <a href="#example_49" id="example_49"></a>

```csharp
//Show current value
Print("The current value of the regression constant is: " + LinRegIntercept(14)[0]);
```


---

# 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://indicators.agenatrader.com/standard-indicators/linregintercept.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.
