feat: us_momentum_qqq_trend; alpha-vs-QQQ research across new data sources
Register us_momentum_qqq_trend: half overnight_recovery_top10, half a QQQ trend sleeve (strategies/qqq_trend.py: 200-day switch times a 30% vol target, held as TQQQ + SHY). Mixed stock+ETF, US only (extra tickers QQQ, SHY, TQQQ). Research (research/lab/): alpha against QQQ with a 2006-16 design / 2017-26 holdout split (alpha.py, qqq_scan.py, beat_qqq.py); leverage and drawdown frontier (levered_book.py, us_target50.py); synthetic 3x ETFs from 1990 and TrendRider/QQQ-trend stress tests (fetch_long_history.py, letf_history.py, vol_trend.py); short-horizon sleeves, diversifiers, industry momentum, earnings-announcement returns; new point-in-time data sources: SEC Form 4 insider trades (fetch_insider.py, insider.py), 10-K/10-Q text similarity, 8-K earnings dates and SIC codes (fetch_lazy_prices.py, lazy_prices.py), and an S&P 400/600 universe from iShares holdings (fetch_us_mid.py, panel_mid.py). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -14,6 +14,10 @@ Their monthly return correlations are 0.2-0.4, which is where the portfolio's
|
||||
higher Sharpe and smaller drawdown come from (2011-2026: Sharpe 1.21 vs
|
||||
0.88-1.03 for the sleeves alone).
|
||||
|
||||
``us_momentum_qqq_trend`` is half overnight_recovery_top10, half the QQQ
|
||||
trend of strategies/qqq_trend.py, from the alpha-vs-QQQ research
|
||||
(research/lab/beat_qqq.py).
|
||||
|
||||
Each sleeve keeps its own strategy's targets. The stock sleeves see only the
|
||||
stock columns and the trend sleeve only its ETFs. A sleeve's share of the
|
||||
account drifts with its own return, like a separate account would, and all
|
||||
@@ -124,6 +128,29 @@ class SleevePortfolioStrategy(BarStrategy):
|
||||
return combined.shift(1).fillna(0.0)
|
||||
|
||||
|
||||
MOMENTUM_QQQ_TREND_ETFS = ["QQQ", "SHY", "TQQQ"]
|
||||
|
||||
|
||||
def us_momentum_qqq_trend() -> SleevePortfolioStrategy:
|
||||
"""Half overnight_recovery_top10, half QQQ trend (strategies/qqq_trend.py).
|
||||
|
||||
From the 2026-09-29 alpha-vs-QQQ research (research/lab/beat_qqq.py):
|
||||
momentum top 10 is the only stock selection whose alpha against QQQ held
|
||||
in 2017-2026; the QQQ trend sleeve cuts the drawdowns. 2006-2026 alpha vs
|
||||
QQQ +7.0%/yr (t 2.2), CAGR 17.4% vs 12.0% (2006-16) and 27.9% vs 21.5%
|
||||
(2017-26), MaxDD -45%."""
|
||||
from strategies.qqq_trend import QQQVolTrend
|
||||
from strategies.robust_momentum import RobustMomentumStrategy
|
||||
return SleevePortfolioStrategy(
|
||||
[
|
||||
("momentum", RobustMomentumStrategy("overnight_recovery", top_n=10, rebal_freq=10,
|
||||
buffer=2.0), 1.0, "stocks"),
|
||||
("qqq_trend", QQQVolTrend(), 1.0, "etfs"),
|
||||
],
|
||||
etfs=MOMENTUM_QQQ_TREND_ETFS,
|
||||
)
|
||||
|
||||
|
||||
def us_three_sleeve() -> SleevePortfolioStrategy:
|
||||
from strategies.permanent import ETF_UNIVERSE
|
||||
from strategies.robust_momentum import RobustMomentumStrategy
|
||||
|
||||
Reference in New Issue
Block a user