---
id: "M:cAlgo.API.Internals.IIndicatorsAccessor.ParabolicSAR(System.Double,System.Double)"
kind: "method"
type: "T:cAlgo.API.Internals.IIndicatorsAccessor"
url: "https://help.ctrader.com/ctrader-algo/references/Indicators/IIndicatorsAccessor/ParabolicSAR/"
---

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

# IIndicatorsAccessor.ParabolicSAR

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

## ParabolicSAR(double minAf, double maxAf)

The Parabolic SAR indicator identifies potential reversals in the market direction

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
ParabolicSAR ParabolicSAR(double minAf, double maxAf)
```

Python:

```python
api.Indicators.ParabolicSAR(minAf: float, maxAf: float) -> ParabolicSAR
```

### Parameters

- `minAf` (`double`, Python `float`): The minimum accumulation factor
- `maxAf` (`double`, Python `float`): The maximum accumulation factor

### Returns

`ParabolicSAR` — ParabolicSAR indicator instance

### Examples

C#:

```csharp
var parabolicSar = Indicators.ParabolicSAR(0.02, 0.2);
var trend = parabolicSar.Result.LastValue < Symbol.Bid ? "up" : "down";
Print("Parabolic SAR: {0}, trend: {1}", parabolicSar.Result.LastValue, trend);
```

Python:

```python
parabolicSar = api.Indicators.ParabolicSAR(0.02, 0.2)
trend = "up" if parabolicSar.Result.LastValue < api.Symbol.Bid else "down"
api.Print(f"Parabolic SAR: {parabolicSar.Result.LastValue}, trend: {trend}")
```

## ParabolicSAR(Bars bars, double minAf, double maxAf)

The Parabolic SAR indicator identifies potential reversals in the market direction

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
ParabolicSAR ParabolicSAR(Bars bars, double minAf, double maxAf)
```

Python:

```python
api.Indicators.ParabolicSAR(bars: Bars, minAf: float, maxAf: float) -> ParabolicSAR
```

### Parameters

- `bars` (`Bars`, Python `Bars`): The Bars that will be used by indicator, you can pass another timeframe/symbol bars
- `minAf` (`double`, Python `float`): The minimum accumulation factor
- `maxAf` (`double`, Python `float`): The maximum accumulation factor

### Returns

`ParabolicSAR` — ParabolicSAR indicator instance

### Examples

C#:

```csharp
var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailySar = Indicators.ParabolicSAR(dailyBars, 0.02, 0.2);
Print("Daily Parabolic SAR: {0}", dailySar.Result.LastValue);
```

Python:

```python
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailySar = api.Indicators.ParabolicSAR(dailyBars, 0.02, 0.2)
api.Print(f"Daily Parabolic SAR: {dailySar.Result.LastValue}")
```

