npx claudepluginhub brainbytes-dev/everything-claude-tradingThis skill uses the workspace's default tool permissions.
name: event-driven
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: event-driven description: Event-driven trading — earnings, M&A arb, index rebalancing, spin-offs. origin: ECT
PEAD is the tendency for stock prices to drift in the direction of the earnings surprise for 60-90 days after the announcement. It is one of the most robust anomalies in finance.
SUE = (EPS_actual - EPS_forecast) / std(forecast_errors)Merger arb involves buying the target and (in stock deals) shorting the acquirer after a deal announcement.
Cash deal:
Spread = (Offer Price - Current Target Price) / Current Target Price
Annualized = Spread * (365 / Expected Days to Close)
Stock deal:
Long target shares, short (exchange ratio * acquirer shares)
Spread = (Exchange Ratio * Acquirer Price - Target Price) / Target Price
Key variables:
- Completion probability (80-95% for friendly deals, lower for hostile)
- Time to close (3-12 months typical)
- Break risk: downside if deal fails (target drops 20-40%)
- Regulatory risk: antitrust review, CFIUS, sector-specific
- Financing risk: leveraged buyouts sensitive to credit markets
Factors increasing completion probability:
- Definitive agreement signed (vs. letter of intent)
- Board recommendation (unanimous stronger)
- Shareholder vote scheduled
- Regulatory approvals received (HSR, EU Commission)
- Financing committed (firm commitment letters)
- Strategic rationale is clear
Factors decreasing completion probability:
- Hostile bid without board support
- Antitrust concerns (high HHI, concentrated market)
- Cross-border regulatory complexity
- Material adverse change (MAC) clauses triggered
- Competing bidders (good for target price, bad for spread capture)
- Financing contingencies in uncertain credit markets
When an index adds or removes a constituent, passive funds must buy or sell. This creates predictable demand imbalances.
S&P 500 additions:
- Announced ~5 trading days before effective date
- Addition stocks rise 3-7% between announcement and effective date
- Part of the return reverses over the following 30 days
- Volume spikes on effective date (index funds rebalance at close)
Strategy:
- Buy on announcement day, sell on effective date (or day after)
- Hedge market risk with index futures
- Expected Sharpe per event: high, but only ~25-30 events/year
Russell reconstitution:
- Annual in late June, based on market cap rankings
- Largest rebalancing event globally (~$9T benchmarked)
- Additions/deletions predictable 2-4 weeks in advance
- Front-running is competitive; alpha has decayed over time
Corporate spin-offs create value through several mechanisms:
Standard event study framework:
1. Define event window: [-T1, +T2] around event date
2. Define estimation window: [-T3, -T1] for normal return model
3. Estimate normal returns: market model, Fama-French, or DGTW
4. Compute abnormal return: AR_t = R_t - E[R_t]
5. Cumulative abnormal return: CAR = sum(AR_t) over event window
6. Test significance: t-stat = CAR / (sigma_AR * sqrt(T))
Statistical considerations:
- Event-induced variance: use Boehmer, Musumeci, Poulsen (1991) test
- Cross-sectional clustering: adjust standard errors when events cluster in time
- Thin trading: use trade-to-trade returns for illiquid securities
Daily screening criteria:
Earnings:
- Companies reporting within next 5 trading days
- Filter: historical earnings surprise dispersion > threshold
- Filter: options implied move vs historical average implied move
M&A:
- Announced deals with spread > risk-free rate + minimum premium
- Filter: deal size, regulatory jurisdiction, financing type
- Monitor: SEC filings (SC 13D, DEFM14A, HSR filings)
Index changes:
- Monitor index provider announcements (S&P, MSCI, FTSE Russell)
- Predict changes using publicly known methodology and market cap data
Spin-offs:
- SEC Form 10 filings (registration of new entity)
- When-issued trading begins (price discovery opportunity)
- Filter: spin-off size, sector, management incentive structure
Position sizing:
Kelly fraction: f* = (p * payoff - (1-p) * loss) / payoff
Where:
p = completion probability
payoff = spread if deal closes
loss = downside if deal breaks
Practical sizing:
Half-Kelly or less for single deals
Maximum 5-8% of portfolio in any single deal
Diversify across 15-30 concurrent deals
Hedging:
Market hedge: short index futures for portfolio beta
Sector hedge: short sector ETF for sector-specific risk
Rate hedge: duration-match for rate-sensitive deals
Signal construction:
1. Compute SUE = (EPS_actual - EPS_consensus) / historical_std
2. Normalize across universe (z-score)
3. Combine with: revenue surprise, guidance revision, estimate revision breadth
4. Enter position: close of earnings day or next open
5. Hold: 5-60 days (shorter for liquid large-cap, longer for small-cap)
6. Exit: fixed holding period or next earnings cycle
Enhancement signals:
- Earnings call NLP sentiment (FinBERT or LLM-based)
- Insider buying/selling post-earnings
- Short interest changes
- Options flow (unusual activity)
- Analyst revision speed (fast revisors vs slow)
Key risks by strategy:
PEAD:
- Crowding: many quant funds trade PEAD, alpha has decayed
- Restatement risk: earnings later revised
- Sector concentration: earnings cluster by sector
Merger arb:
- Deal break: 5-20% of deals fail, causing 20-40% loss on position
- Correlation: multiple deals break in market stress (2008: 15 deals broke)
- Liquidity: target stock liquidity dries up if deal is in doubt
Index rebalancing:
- Front-running competition: many participants, shrinking alpha
- Implementation shortfall: large trades move prices
Spin-offs:
- Illiquidity: small spin-offs may have limited float
- Information vacuum: limited financial history for new entity
Before deploying an event-driven strategy: