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

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

# LinearRegressionRSquared.Result

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

## Result

The Result Series of the Linear Regression R Squared indicator.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

```python
linearRegressionRSquared.Result: IndicatorDataSeries
```

### Returns

`IndicatorDataSeries` — 

### Examples

C#:

```csharp
private LinearRegressionRSquared rSquared;

protected override void OnStart()
{
    // initialize rSquared indicator
    rSquared = Indicators.LinearRegressionRSquared(Bars.ClosePrices, 9);
}
protected override void OnTick()
{
    // Print the last value of rSquared indicator to the log
    Print("The current value of R Squared is {0}", rSquared.Result.LastValue);
}
```

Python:

```python
def on_start(self):
    # initialize rSquared indicator
    self.rSquared = api.Indicators.LinearRegressionRSquared(api.Bars.ClosePrices, 9)

def on_tick(self):
    # Print the last value of rSquared indicator to the log
    api.Print(f"The current value of R Squared is {self.rSquared.Result.LastValue}")
```

