DeMarker

Calculates the DeMarker indicator.

Accepts the following parameters:

Parameter NameTypeDefault ValueNotes
periodNumber14-

Returns: Series<Number>

DeMarker is a built-in function - you can use it directly. Below is an example implementation:

1 function DeMarker(period = 14):
2 demax = SMA(high - high[1] if high > high[1] else 0, period)
3 demin = SMA(low[1] - low if low < low[1] else 0, period)
4
5 demax / (demax + demin) if (demax + demin > 0) else 0