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

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

# IIndicatorsAccessor.DeMarker

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

## DeMarker(int periods)

The DeMarker (DeM) is an oscillator that compares the most recent maximum and minimum prices to the previous period's equivalent price.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
DeMarker DeMarker(int periods)
```

Python:

```python
api.Indicators.DeMarker(periods: int) -> DeMarker
```

### Parameters

- `periods` (`int`, Python `int`): Moving Average Period

### Returns

`DeMarker` — DeMarker

### Examples

C#:

```csharp
var deMarker = Indicators.DeMarker(14);
if (deMarker.Result.Last(1) < 0.3)
    Print("DeMarker is oversold: {0}", deMarker.Result.Last(1));
```

Python:

```python
deMarker = api.Indicators.DeMarker(14)
if deMarker.Result.Last(1) < 0.3:
    api.Print(f"DeMarker is oversold: {deMarker.Result.Last(1)}")
```

## DeMarker(Bars bars, int periods)

The DeMarker (DeM) is an oscillator that compares the most recent maximum and minimum prices to the previous period's equivalent price.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
DeMarker DeMarker(Bars bars, int periods)
```

Python:

```python
api.Indicators.DeMarker(bars: Bars, periods: int) -> DeMarker
```

### Parameters

- `bars` (`Bars`, Python `Bars`): The Bars that will be used by indicator, you can pass another timeframe/symbol bars
- `periods` (`int`, Python `int`): Moving Average Period

### Returns

`DeMarker` — DeMarker

### Examples

C#:

```csharp
var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailyDeMarker = Indicators.DeMarker(dailyBars, 14);
Print("Daily DeMarker: {0}", dailyDeMarker.Result.Last(1));
```

Python:

```python
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailyDeMarker = api.Indicators.DeMarker(dailyBars, 14)
api.Print(f"Daily DeMarker: {dailyDeMarker.Result.Last(1)}")
```

