Skip to content

refactor: detect_warmup registry pattern - #72

Merged
trsdn merged 1 commit into
mainfrom
refactor/issue-59-warmup-registry
Feb 13, 2026
Merged

refactor: detect_warmup registry pattern#72
trsdn merged 1 commit into
mainfrom
refactor/issue-59-warmup-registry

Conversation

@trsdn

@trsdn trsdn commented Feb 13, 2026

Copy link
Copy Markdown
Owner

Fixes #59

Replaces the monolithic if/elif chain in detect_warmup() with a classmethod-based registry.
Each strategy now has warmup_indicators(cls, data) returning its indicator Series.
detect_warmup() calls it generically — adding new strategies no longer requires editing the function.

All 128 tests pass unchanged.

Each strategy now has a warmup_indicators(cls, data) classmethod that
returns indicator Series for warmup detection. detect_warmup() calls
it generically — no more per-strategy branches. Adding new strategies
no longer requires editing detect_warmup().

Fixes #59
@trsdn
trsdn merged commit 1ab0d18 into main Feb 13, 2026
2 checks passed
@trsdn
trsdn deleted the refactor/issue-59-warmup-registry branch February 13, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reduce detect_warmup() coupling with strategy registry

1 participant