← All projects

Technology stock ranking

Current model

The data pipeline, fixed four-signal alpha score, and portfolio controls behind the saved website demo.

Pipeline

The feature pipeline supports both model generations. Regime-dependent weighting belongs to the original model; the current ranking uses the fixed alpha blend below.

Data preparation

The model starts by building a technology-stock universe, removing stale symbols, and keeping a historical membership record so old tests do not simply assume today’s universe always existed. It then aligns daily price history with point-in-time financial statement data, using filing-date cutoffs so historical scoring only uses information that would have been available at the anchor date.

The pipeline keeps source and confidence fields beside the scores. That matters because a missing share count, missing filing, or too-small peer group can make a fair-value score unavailable or less reliable. The workbook now reports those reasons instead of silently returning misleading numbers.

1

Universe and dates

Filter to the technology universe, preserve historical membership windows, and choose scoring anchor dates.

2

Market data

Load adjusted prices, volume, liquidity, moving-average context, returns, and benchmark price history.

3

Fundamentals

Use financial statement values available by filing date, then calculate market cap, enterprise value, cash-flow, growth, and profitability metrics.

4

Diagnostics

Track missing values, peer-count problems, valuation source, share-count source, and fair-value coverage before ranking.

Peer grouping

The core comparison happens inside subindustries, then fair-value scoring narrows that group again by size bucket. In practice, a stock first competes with companies that share a similar business model, then its valuation metrics are benchmarked against the Small, Mid, or Large bucket assigned inside that subindustry. That avoids comparing a mega-cap platform company directly against a much smaller niche software or hardware company.

If a subindustry is too small for a stable benchmark, or if a ticker is not assigned to a benchmark bucket, the row is flagged rather than forced into a fake fair-value score. The output also keeps industry-level and subindustry-level trend context so the stock’s movement can be read against both its close peers and the broader technology group.

Trend calculations

The price-trend score looks at short and medium-term price behavior instead of a single return. Features include 20- and 50-day distance-to-high behavior, moving-average stack, hold-above-50-day behavior, new-low penalties, 50-day return, distance from the 20- and 50-day moving averages, and higher-high checks. The model calculates this at the stock level and also summarizes trend strength at the subindustry and industry level.

Valuation metrics

The fair-value layer converts financial statements into comparable metrics, then ranks each stock relative to its subindustry-and-size benchmark bucket. Inputs include revenue, net income, operating income, gross profit, operating cash flow, free cash flow, market cap, enterprise value, EBITDA, EPS, share count, and net debt. Derived metrics include EV/EBITDA, EV/forward FCF, gross profit to enterprise value, price to sales, PEG, free-cash-flow margin, revenue growth, EPS growth, and ROIC-style measures.

How the main feature families are used
Feature familyWhat it answersExample fields
TrendIs the stock gaining or losing momentum compared with its own recent history and peer group?50-day return, moving-average stack, new-low penalty, higher highs
Fair valueDoes the company look expensive or cheap relative to similar technology businesses?EV/EBITDA, EV/FCF, price/sales, PEG, ROIC, FCF margin
RegimeShould the model trust trend more, or lean harder on valuation and risk?Industry regime, subindustry regime, stock-flow regime, structural regime
Confidence and riskHow much should a strong score be trusted after data coverage, volatility, and downside behavior?Fair-value coverage, share-count source, risk-adjusted momentum, downside quality

Current score construction

Current alpha score

The current research score, Alpha_Prototype_XLKCompetitive, is a fixed blend of four percentile-ranked signals. It is deliberately distinguished from the original combined score because the validation work showed that pure trend/value blending was not enough by itself.

Weights in the current alpha-score formula
SignalWeightPurpose
Confidence-adjusted fair value30%Peer-relative valuation after reducing dependence on lower-confidence fair-value inputs
Subindustry-relative momentum45%Medium/long-term price strength compared with the stock’s own peer group
Risk-adjusted momentum15%Price strength assessed alongside volatility rather than return alone
Downside quality10%Penalty/quality context for drawdowns and downside behavior
See the scoring and output code excerpts
Python alpha formula: 30 percent confidence-adjusted value, 45 percent peer momentum, 15 percent risk-adjusted momentum, and 10 percent downside quality
The fixed alpha blend used for the current demo. View full size ↗
Python settings for the alpha score, liquidity filter, top-ten basket, rank weighting, and asset generation
Saved research defaults and output-generation workflow. No broker connection is involved. View full size ↗

Portfolio controls

Why ranking is not enough

A top-stock list can look strong but still be impractical if it concentrates too much, trades illiquid names, turns over constantly, or ignores costs. The simulator therefore treats ranking and portfolio construction as separate steps.

A

Liquidity

Current demo uses a $30 million minimum 20-day average dollar-volume filter.

B

Concentration

Position and subindustry caps keep one stock or peer group from dominating the basket.

C

Costs

Backtests include transaction-cost and slippage assumptions instead of using frictionless returns.

D

Cash and fallback

When controls prevent full deployment, the simulator can leave residual weight in cash rather than forcing extra positions.

The current website demo shows the top-10, rank-weighted construction. A corrected older-period comparison found stronger returns from quarterly top-50, but that research candidate has not replaced the website default and still needs evaluation on the main period and fresh unseen data.