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

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

# PolynomialRegressionChannels.Sqh2

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

## Sqh2

Get the Polynomial Regression Channels Sqh2 data series

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
IndicatorDataSeries Sqh2 {get; set;}
```

Python:

```python
polynomialRegressionChannels.Sqh2: IndicatorDataSeries
```

### Returns

`IndicatorDataSeries` — 

### Examples

C#:

```csharp
var prc = Indicators.PolynomialRegressionChannels(3, 120, 1.62, 2);
if (Bars.HighPrices.Last(1) >= prc.Sqh2.Last(1))
    Print("Price reached the second upper channel: {0}", prc.Sqh2.Last(1));
```

Python:

```python
prc = api.Indicators.PolynomialRegressionChannels(3, 120, 1.62, 2)
if api.Bars.HighPrices.Last(1) >= prc.Sqh2.Last(1):
    api.Print(f"Price reached the second upper channel: {prc.Sqh2.Last(1)}")
```

