demarker
forge.tafunctionSince Forge API 1
Functionpython
forge.ta.demarker(high: ArrayLike,low: ArrayLike,period: int = 14) -> np.ndarrayDeMarker: pressure from higher highs against lower lows, from 0 to 1.
Parameters
| Name | Type | Default |
|---|---|---|
| high | ArrayLike | |
| low | ArrayLike | |
| period | int | 14 |
DeMax is the rise of the high and DeMin the fall of the low, each 0 when it did not move that
way. The result is the simple mean of DeMax over the sum of both means; no movement reads 0.5.
The first value is on bar period.
Classpython
forge.ta.DeMarker(**inputs: Any) -> NonePressure from higher highs against lower lows, from 0 to 1.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| period | int | 14 | 1 to 5000 |
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.