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

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

# IIndicatorsAccessor.GatorOscillator

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

## GatorOscillator(int jawsPeriods, int jawsShift, int teethPeriods, int teethShift, int lipsPeriods, int lipsShift, MovingAverageType maType)

Gator Oscillator (GO) supplements the Alligator indicator and is used together with it.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
GatorOscillator GatorOscillator(int jawsPeriods, int jawsShift, int teethPeriods, int teethShift, int lipsPeriods, int lipsShift, MovingAverageType maType)
```

Python:

```python
api.Indicators.GatorOscillator(jawsPeriods: int, jawsShift: int, teethPeriods: int, teethShift: int, lipsPeriods: int, lipsShift: int, maType: MovingAverageType) -> GatorOscillator
```

### Parameters

- `jawsPeriods` (`int`, Python `int`): The jaws period of Alligator
- `jawsShift` (`int`, Python `int`): The jaws shift of Alligator
- `teethPeriods` (`int`, Python `int`): The teeth period of Alligator
- `teethShift` (`int`, Python `int`): The teeth shift of Alligator
- `lipsPeriods` (`int`, Python `int`): The lips period of Alligator
- `lipsShift` (`int`, Python `int`): The lips shift of Alligator
- `maType` (`MovingAverageType`, Python `MovingAverageType`): Moving Average Type

### Returns

`GatorOscillator` — GatorOscillator

### Examples

C#:

```csharp
var gator = Indicators.GatorOscillator(13, 8, 8, 5, 5, 3, MovingAverageType.Simple);
Print("Gator upper: {0}, lower: {1}", gator.Upper.Last(1), gator.Lower.Last(1));
```

Python:

```python
gator = api.Indicators.GatorOscillator(13, 8, 8, 5, 5, 3, MovingAverageType.Simple)
api.Print(f"Gator upper: {gator.Upper.Last(1)}, lower: {gator.Lower.Last(1)}")
```

## GatorOscillator(DataSeries source, int jawsPeriods, int jawsShift, int teethPeriods, int teethShift, int lipsPeriods, int lipsShift, MovingAverageType maType)

Gator Oscillator (GO) supplements the Alligator indicator and is used together with it.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
GatorOscillator GatorOscillator(DataSeries source, int jawsPeriods, int jawsShift, int teethPeriods, int teethShift, int lipsPeriods, int lipsShift, MovingAverageType maType)
```

Python:

```python
api.Indicators.GatorOscillator(source: DataSeries, jawsPeriods: int, jawsShift: int, teethPeriods: int, teethShift: int, lipsPeriods: int, lipsShift: int, maType: MovingAverageType) -> GatorOscillator
```

### Parameters

- `source` (`DataSeries`, Python `DataSeries`): The source data used for the Alligator calculation.
- `jawsPeriods` (`int`, Python `int`): The jaws period of Alligator
- `jawsShift` (`int`, Python `int`): The jaws shift of Alligator
- `teethPeriods` (`int`, Python `int`): The teeth period of Alligator
- `teethShift` (`int`, Python `int`): The teeth shift of Alligator
- `lipsPeriods` (`int`, Python `int`): The lips period of Alligator
- `lipsShift` (`int`, Python `int`): The lips shift of Alligator
- `maType` (`MovingAverageType`, Python `MovingAverageType`): Moving Average Type

### Returns

`GatorOscillator` — GatorOscillator

### Examples

C#:

```csharp
var gator = Indicators.GatorOscillator(Bars.MedianPrices, 13, 8, 8, 5, 5, 3, MovingAverageType.Simple);
Print("Gator on median prices, upper: {0}, lower: {1}", gator.Upper.Last(1), gator.Lower.Last(1));
```

Python:

```python
gator = api.Indicators.GatorOscillator(api.Bars.MedianPrices, 13, 8, 8, 5, 5, 3, MovingAverageType.Simple)
api.Print(f"Gator on median prices, upper: {gator.Upper.Last(1)}, lower: {gator.Lower.Last(1)}")
```

