← all research
STUDY

"Phase 3 — Labels & walk-forward dataset (Alpaca crypto)"

2026-08-15

Status: DONE (2026-08-15) · Suite: 260 passed (9 new tests in tests/test_alpaca_dataset.py)

What was built

FileRole
data/alpaca/labels.pyExecutable labels for the long/flat bar system
data/alpaca/dataset.pyDataset assembly, persistence, walk-forward split tooling

Labels (labels.py)

The bar-close signal must be executable: a signal read at bar t close enters at the next open and exits h bars later at the open — the only honest leg (this matches the repo's PANEL open-entry book).

Dataset assembly (dataset.py)

Walk-forward splits (leakage-free by construction)

Tests (tests/test_alpaca_dataset.py, isolated dirs → tmp)

Integration notes