doc headers

This commit is contained in:
Miha Kralj
2026-02-27 07:48:12 -08:00
parent 8a1ba95173
commit 4ab3a7fb53
389 changed files with 6682 additions and 468 deletions
+19 -1
View File
@@ -1,8 +1,26 @@
# HEMA: Hull Exponential Moving Average
| Property | Value |
| ---------------- | -------------------------------- |
| **Category** | Trend (IIR MA) |
| **Inputs** | Source (close) |
| **Parameters** | `period` |
| **Outputs** | Single series (Hema) |
| **Output range** | Tracks input |
| **Warmup** | `EstimateWarmupPeriod()` bars |
### TL;DR
- HEMA is a Hull-style moving average built entirely from **exponential smoothers**.
- Parameterized by `period`.
- Output range: Tracks input.
- Requires `EstimateWarmupPeriod()` bars of warmup before first valid output (IsHot = true).
- Validated against TA-Lib, Skender, and Tulip reference implementations where available.
> "HMA is a topology. HEMA keeps the topology and swaps the physics: windows to decay, with identical lag."
## An EMA-domain analog of HMA with WMA-lag-matched alphas
> "HMA is a topology. HEMA keeps the topology and swaps the physics: windows to decay, with identical lag."
HEMA is a Hull-style moving average built entirely from **exponential smoothers**. It preserves the classic HMA pipeline (fast minus slow, then smooth) but replaces WMA sub-filters with EMAs whose alphas are tuned to produce **identical lag** to the WMA stages they replace. At period $N$: HEMA($N$) and HMA($N$) have the same theoretical group delay, but HEMA has infinite memory and smoother transient behavior.