# DeMarker

`demarker`

Pressure from higher highs against lower lows, from 0 to 1.

## Inputs

| Name | Type | Default | Range |
| --- | --- | --- | --- |
| period | int | 14 | 1 to 5000 |

## Outputs

| Name | Kind |
| --- | --- |
| demarker | value |

Warm-up: period bars (14 at the defaults).

Repaints: No.

## Formula

DeMax = the rise of the high when positive, else 0; DeMin = the fall of the low when positive, else 0

DeM = SMA(DeMax) / (SMA(DeMax) + SMA(DeMin)) over the last period bars

No movement reads 0.5.
