---
id: "P:cAlgo.API.Indicators.LinearRegressionSlope.Result"
kind: "property"
type: "T:cAlgo.API.Indicators.LinearRegressionSlope"
url: "https://help.ctrader.com/ctrader-algo/references/Indicators/LinearRegressionSlope/Result/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# LinearRegressionSlope.Result

Member of [LinearRegressionSlope](https://help.ctrader.com/ctrader-algo/references/Indicators/LinearRegressionSlope/index.md).

## Result

The resulting time series of the calculation of the Linear Regression Slope indicator.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
IndicatorDataSeries Result {get;}
```

Python:

```python
linearRegressionSlope.Result: IndicatorDataSeries
```

### Returns

`IndicatorDataSeries` — 

### Examples

C#:

```csharp
var linearRegressionSlope = Indicators.LinearRegressionSlope(Bars.ClosePrices, 14);
var slope = linearRegressionSlope.Result.Last(1);
Print("The trend is {0}, slope: {1}", slope > 0 ? "rising" : "falling", slope);
```

Python:

```python
linearRegressionSlope = api.Indicators.LinearRegressionSlope(api.Bars.ClosePrices, 14)
slope = linearRegressionSlope.Result.Last(1)
api.Print(f"The trend is {'rising' if slope > 0 else 'falling'}, slope: {slope}")
```

