npx claudepluginhub brainbytes-dev/everything-claude-tradingThis skill uses the workspace's default tool permissions.
name: alpha-research
Provides Ktor server patterns for routing DSL, plugins (auth, CORS, serialization), Koin DI, WebSockets, services, and testApplication testing.
Conducts multi-source web research with firecrawl and exa MCPs: searches, scrapes pages, synthesizes cited reports. For deep dives, competitive analysis, tech evaluations, or due diligence.
Provides demand forecasting, safety stock optimization, replenishment planning, and promotional lift estimation for multi-location retailers managing 300-800 SKUs.
name: alpha-research description: Alpha signal discovery, testing, and evaluation. Use when researching new trading signals.
The strongest alpha signals start with an economic hypothesis, not a data mining exercise. A valid hypothesis answers:
The IC is the rank correlation (Spearman) between a signal's predicted values and subsequent realized returns. It is the primary metric for evaluating alpha signals.
IR = IC * sqrt(BR) * TC
Implication: A weak signal (low IC) applied across many assets (high BR) can produce a strong strategy.
IC decay measures how quickly a signal's predictive power diminishes over time:
Compute IC at horizons: 1-day, 5-day, 10-day, 21-day, 63-day
Plot IC vs horizon — the decay curve reveals:
- Fast decay (< 5 days): Signal is short-lived, requires high-frequency trading
- Medium decay (5-21 days): Sweet spot for systematic strategies
- Slow decay (21-63+ days): Lower turnover, capacity-friendly
- Non-monotonic decay: May indicate reversal at certain horizons
The optimal holding period is where IC * sqrt(horizon) is maximized — balancing signal strength against breadth.
High alpha signals are useless if they require excessive trading:
Single-period turnover = sum(|w_t - w_{t-1}|) / 2
Annualized turnover = single-period turnover * periods_per_year
Cost-adjusted alpha = gross_alpha - (turnover * round_trip_cost)
Break-even cost = gross_alpha / turnover
If break-even cost is below your actual trading cost, the signal is unprofitable.
When testing N signals, some will appear significant by chance. Apply corrections:
Step 1: Split data — 60% in-sample, 20% validation, 20% holdout
Step 2: Develop signal on in-sample only
Step 3: Tune parameters on validation set
Step 4: Final evaluation on holdout — ONE chance, no iteration
Step 5: Compare holdout performance to in-sample:
- Holdout SR / In-sample SR > 0.5: Robust
- Ratio 0.3-0.5: Marginal, proceed with caution
- Ratio < 0.3: Likely overfit, discard or redesign
Combining signals improves stability if they are not perfectly correlated:
Alpha signals decay over time as markets adapt. Monitor and respond:
Decay indicators:
Responses:
Signal Name: [e.g., Earnings Revision Breadth]
Universe: S&P 500
Signal Frequency: Monthly
Test Period: 2005-01-01 to 2024-12-31 (IS: 2005-2017, OOS: 2018-2024)
--- In-Sample ---
IC Mean: 0.042
IC Std: 0.085
ICIR: 0.49
Monthly Turnover: 18%
Quintile Spread: 65 bps/month (Q1 - Q5)
Hit Rate: 58%
Max DD (L/S): -12.3%
Sharpe (L/S): 1.25
--- Out-of-Sample ---
IC Mean: 0.031
IC Std: 0.092
ICIR: 0.34
Sharpe (L/S): 0.88
OOS/IS SR Ratio: 0.70
--- Correlation with Existing Alphas ---
Alpha_momentum: 0.15
Alpha_value: -0.08
Alpha_quality: 0.22
Verdict: PASS — robust OOS performance, low correlation to existing book
[ ] Hypothesis documented with economic rationale
[ ] Data sourced with point-in-time timestamps
[ ] Survivorship bias handled (include delisted securities)
[ ] Signal computed at each rebalance date
[ ] IC and ICIR computed across full sample
[ ] IC decay curve plotted across multiple horizons
[ ] Turnover and break-even cost computed
[ ] Quintile analysis: monotonic spread required
[ ] Sector and market-cap neutralization tested
[ ] Multiple testing adjustment applied (record total tests run)
[ ] Out-of-sample validation on held-out period
[ ] Correlation with existing signals < 0.40
[ ] Capacity analysis: can signal absorb target AUM?
[ ] Implementation simulation with realistic costs
Before adding an alpha signal to production: