Add Global ETF confidence vol gate profile#45
Merged
Conversation
Contributor
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a separate
global_etf_confidence_vol_gateruntime profile for testing the Global ETF confidence plus relative-volatility gate without changing the existingglobal_etf_rotationdefault behavior.Context
Recent research showed that simply concentrating Global ETF rotation into Top1 improved CAGR but widened drawdown. The more useful signal was a guarded version: only shift from equal-weight Top2 to 75/25 Top1/Top2 when Top1 has a high momentum z-gap and its trailing volatility is not materially higher than Top2.
Changes
global_etf_rotationdefault confidence weighting disabled.global_etf_confidence_vol_gatewith:sma_period=250confidence_threshold=1.0confidence_top1_weight=0.75confidence_volatility_window=126confidence_volatility_max_ratio=1.3compute_signalscalls by normalizing ranking and canary inputs before ticker-list construction.Validation
python -m ruff check src/us_equity_strategies/strategies/global_etf_rotation.py src/us_equity_strategies/catalog.py src/us_equity_strategies/manifests/__init__.py src/us_equity_strategies/entrypoints/__init__.py src/us_equity_strategies/runtime_adapters.py src/us_equity_strategies/account_sizing.py tests/test_global_etf_rotation.py tests/test_catalog.py tests/test_entrypoints.pypython -m pytest tests/test_global_etf_rotation.py tests/test_catalog.py tests/test_entrypoints.pypython -m pytestRollout
This PR does not alter the existing
global_etf_rotationprofile. The new profile should be treated as an experimental runtime-enabled candidate for paper or small allocation first.