---
title: "DeMarker - Oscillators - Technical Indicators - Price Charts, Technical and Fundamental Analysis - MetaTrader 5 Help"
description: "Demarker Technical Indicator (DeM) is based on the comparison of the period maximum with the previous period maximum. If the... - DeMarker - Oscillators - Technical Indicators"
image: "https://www.metatrader5.com/i/logo_metatrader5.png"
url: "https://www.metatrader5.com/en/terminal/help/indicators/oscillators/demarker"
---

[MetaTrader 5 Help](https://www.metatrader5.com/en/terminal/help) → [Price Charts, Technical and Fundamental Analysis](https://www.metatrader5.com/en/terminal/help/charts_analysis) → [Technical Indicators](https://www.metatrader5.com/en/terminal/help/charts_analysis/indicators) → [Oscillators](https://www.metatrader5.com/en/terminal/help/indicators/oscillators) → DeMarker

# DeMarker

Demarker Technical Indicator (DeM) is based on the comparison of the period maximum with the previous period maximum. If the current period (bar) maximum is higher, the respective difference between the two will be registered. If the current maximum is lower or equaling the maximum of the previous period, the naught value will be registered. The differences received for N periods are then summed. The received value is used as the numerator of the DeMarker and will be divided by the same value plus the sum of differences between the price minima of the previous and the current periods (bars). If the current price minimum is greater than that of the previous bar, the naught value will be registered.

When the indicator falls below 30, the bullish price reversal should be expected. When the indicator rises above 70, the bearish price reversal should be expected.

If you use periods of longer duration, when calculating the indicator, you’ll be able to catch the long term market tendency. Indicators based on short periods let you enter the market at the point of the least risk and plan the time of transaction so that it falls in with the major trend.

> You can test the [trade signals](https://www.mql5.com/en/docs/standardlibrary/ExpertClasses/CSignal/signal_demarker) of this indicator by creating an Expert Advisor in [MQL5 Wizard](https://www.metatrader5.com/en/automated-trading/mql5wizard).

![DeMarker](https://www.metatrader5.com/i/help/terminal/en/demarker.png)

## Calculation

The value of the DeMarker for the "i" interval is calculated as follows:

DeMax (i) is calculated. If HIGH (i) > HIGH (i - 1), then:

```
DeMax (i) = HIGH (i) - HIGH (i - 1)
```

otherwise

```
DeMax (i) = 0
```

DeMin (i) is calculated. IfLOW (i) < LOW (i - 1), then:

```
DeMin (i) = LOW (i - 1) - LOW (i)
```

otherwise

```
DeMin (i) = 0
```

The value of the DeMarker is calculated as:

```
DMark (i) = SMA (DeMax, N) / (SMA (DeMax, N) + SMA (DeMin, N))
```

Where:

HIGH (i) — the highest price of the current bar;
LOW (i) — the lowest price of the current bar;
HIGH (i - 1) — the highest price of the previous bar;
LOW (i - 1) — the lowest price of the previous bar;
SMA — [Simple Moving Average](https://www.metatrader5.com/en/terminal/help/indicators/trend_indicators/ma#sma);
N — number of periods used for calculation.

## In this section

- [Average True Range](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/atr)
- [Bears Power](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/bears)
- [Bulls Power](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/bulls)
- [Chaikin Oscillator](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/chaikin)
- [Commodity Channel Index](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/cci)
- DeMarker
- [Force Index](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/fi)
- [MACD](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/macd)
- [Momentum](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/momentum)
- [Moving Average of Oscillator](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/mao)
- [Relative Strength Index](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/rsi)
- [Relative Vigor Index](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/rvi)
- [Stochastic Oscillator](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/so)
- [Triple Exponential Average](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/tea)
- [Williams' Percent Range](https://www.metatrader5.com/en/terminal/help/indicators/oscillators/wpr)

```json
{"@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ {"@type": "ListItem", "position": 1, "item": {"@id": "https://www.metatrader5.com/en/terminal/help", "name": "MetaTrader 5 Help"}}, {"@type": "ListItem", "position": 2, "item": {"@id": "https://www.metatrader5.com/en/terminal/help/charts_analysis", "name": "Price Charts, Technical and Fundamental Analysis"}}, {"@type": "ListItem", "position": 3, "item": {"@id": "https://www.metatrader5.com/en/terminal/help/charts_analysis/indicators", "name": "Technical Indicators"}}, {"@type": "ListItem", "position": 4, "item": {"@id": "https://www.metatrader5.com/en/terminal/help/indicators/oscillators", "name": "Oscillators"}}, {"@type": "ListItem", "position": 5, "item": {"@id": "https://www.metatrader5.com/en/terminal/help/indicators/oscillators/demarker", "name": "DeMarker"}} ]}
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{ "@type": "Question", "name": "MetaTrader 5: DeMarker", "acceptedAnswer": { "@type": "Answer", "text": "Demarker Technical Indicator (DeM) is based on the comparison of the period maximum with the previous period maximum. If the current period (bar)..." } }] }
```
