Strategy research

How to start quantitative trading

Summary

Quantitative trading turns a question about a group of stocks into a portfolio you can test. Define which stocks qualify, how to rank them, how much each can hold, and when to rebalance. Check that each decision uses information that was available on that date.

Six dice arranged on graph paper, showing one through six.

Suppose you want to compare hundreds of stocks using the same criteria. You care about business quality, valuation, and recent price behavior, but manually checking every company makes a consistent process difficult.

Quantitative trading starts by turning those ideas into measurable rules. A strategy might screen a market, rank the eligible stocks, select a portfolio, and repeat the process on a schedule. Each decision should be specific enough that you can reproduce it.

This guide explains that workflow and how to explore it with Alphavator's quant strategy builder.

Quantitative trading and algorithmic trading overlap

The Top 20 selection shows a dated list with HCI, KGC, and IDCC in the first three positions.
The Quality Value Momentum screen keeps the top 20 stocks by score. HCI ranked first on November 5, 2025. A later screen can select a different list.Full size — The Top 20 selection shows a dated list with HCI, KGC, and IDCC in the first three positions. (opens in a new tab)

Quantitative methods use numerical data to investigate and make decisions. Algorithmic trading concerns expressing decisions in instructions that software can execute. A quant portfolio can use an algorithm to implement its selection and rebalancing rules.

Here, we focus on a practical starting point: a portfolio selected by explicit stock characteristics. You can learn the structure with a few transparent measurements before considering more complex models.

Understand the six decisions in a quant strategy

DecisionQuestion it answers
UniverseWhich securities may enter the research?
ScreenWhich securities meet the eligibility rules?
RankHow do you compare the eligible candidates?
SelectHow many candidates do you keep?
AllocateHow much does each selected holding receive?
RebalanceWhen do you repeat the decisions and adjust holdings?

Keep these decisions separate. A screen decides whether a stock qualifies; a ranking decides its relative position among qualifying stocks. A portfolio weight then decides how much that selection contributes to the portfolio.

Choose one measurable idea

For your first experiment, state a hypothesis in ordinary language. For example: “I want to investigate whether stocks with stronger recent returns behave differently from the rest of my eligible universe.” That gives you a research question without promising an outcome.

Define “recent returns” precisely. A six-month return and a twelve-month return that excludes the latest month are different measurements. The Kenneth French Data Library's momentum factor, for example, uses prior returns that omit the most recent month. That definition is a research choice, not a universal instruction to use the same approach.

If you later add quality or value, define those measurements just as carefully. Return on equity differs from return on assets. Price-to-earnings differs from free-cash-flow yield. Decide how to handle negative or missing values before examining the results.

Design a small research example

The following is a hypothetical portfolio specification for learning. Its thresholds are illustrative and have not been validated as an investment strategy.

  1. Universe: Consider supported US-listed common stocks.
  2. Screen: Require a price above $5, market capitalization above $1 billion, and sufficient history for the chosen return measurement.
  3. Rank: Sort eligible stocks by trailing six-month return, highest first, using a consistent price-adjustment convention.
  4. Select: Keep the top 10 candidates.
  5. Allocate: Target 5% of the strategy portfolio per selected stock, leaving the remainder in cash. If fewer qualify, leave those unused allocations in cash.
  6. Rebalance: Re-evaluate monthly, remove stocks that no longer qualify, and adjust the retained and new holdings toward their target weights.

A price or market-cap screen does not establish that a stock is easy to trade. Examine liquidity and concentration separately. Ten stocks can still share similar exposures, especially if they cluster in one sector.

The 5% weights refer to portfolio value, not 5% of the cash remaining after each successive purchase. Check sizing semantics before assuming a builder implements your intended allocations.

Six numbered decisions define a supported stock universe, screen price above five dollars and market cap above one billion with sufficient history, rank by six-month return, select the top ten, allocate five percent per holding, and rebalance monthly. Ten five-percent allocations occupy half the illustrated portfolio, with half in cash.
Figure 1. This hypothetical specification separates screening, ranking, selection, allocation, and rebalancing. If ten stocks qualify, ten target weights of 5% allocate 50% of portfolio value to holdings and leave 50% in cash. If fewer qualify, their unused allocations also remain in cash.Full size — Six numbered decisions define a supported stock universe, screen price above five dollars and market cap above one billion with sufficient history, rank by six-month return, select the top ten, allocate five percent per holding, and rebalance monthly. Ten five-percent allocations occupy half the illustrated portfolio, with half in cash. (opens in a new tab)

Map the decisions into Alphavator

Create a quant TBOT and work through its universe, scanning, symbol-selection, and order-condition stages. Alphavator supports screening, ranking, allocations, and scheduled rebalancing with visual blocks.

Start by selecting the supported market and security universe. Add the available screening fields, then choose the ranking measurement and direction. Inspect the selected candidates before configuring allocations and the rebalance schedule.

Check every field's definition. If a particular metric, missing-data rule, or allocation behavior is unavailable, simplify the specification to something the platform can express and document the change. An approximate implementation should not be presented as an exact copy of the original idea.

Also distinguish a static list from a dynamic selection process. A list chosen today tells you which symbols qualified today. A dynamic historical test needs to reproduce eligibility and selection at each past decision date.

Make sure the past stays in the past

Historical portfolio research has a timing problem: information must enter the test only after it was available. A company's fiscal quarter ending in March does not mean its reported results were public on March 31. Later revisions are another source of information that was unavailable at the original decision.

Similarly, testing only stocks that still exist today can omit companies that disappeared. These are forms of look-ahead and survivorship bias, discussed in QuantConnect's research guide.

Before trusting a quant backtest, verify historical universe membership, publication timing, delisted-security coverage, and metric definitions. A dynamic builder alone does not establish that all underlying data is point-in-time accurate.

Evaluate the portfolio you actually created

Inspect holdings at several rebalance dates. Can you explain why each stock qualified? Did the rank direction produce the intended choices? How were ties and missing values handled?

Then check turnover: how much changes at each rebalance? More turnover creates more execution to model. Examine costs, liquidity, drawdown, and concentration alongside return.

Compare with a suitable reference portfolio over the same dates, while accounting for the example's substantial cash allocation. Keep an unchanged strategy for evaluation on a separate period and observe it in paper trading before considering live execution.

Step-by-step walkthrough

The recording builds the Quality Value Momentum portfolio. It ranks eligible stocks on three sets of factors, selects 20, and assigns each a 5% target. Follow one stock across two monthly selections to see how a change in rank can lead to a sale.

Jump to a step
  1. Choose the stocks your rules can see
  2. Separate eligible stocks from the rest
  3. Rank the candidates on quality, value, and momentum
  4. Decide how much to hold and when to rebalance
  5. Follow one company across two rebalances
  1. Step 1

    Choose the stocks your rules can see

    In Discover, select Create New TBOT and choose Quant. A TBOT is the trading bot that holds your rules. Give it a recognizable name, such as “Quality Value Momentum,” choose Stock, and set the time frame to 1 day. Under Select Market Universe, add NYSE and NASDAQ.

    This universe answers a basic research question. When the score calls a company cheap or profitable, which other companies are in the comparison? Keeping the same exchanges in later tests makes those comparisons easier to interpret.

  2. Step 2

    Separate eligible stocks from the rest

    Under Define Market Scan, add five Screen rows. Require market capitalization above $1 billion, price above $5, and 20-day average daily dollar volume above $20 million. Then require at least three years of trading history and free cash flow above zero.

    Dollar volume measures how much money changes hands in a stock. A $100 stock can still trade infrequently. The volume rule gives it a separate test to pass. Notice the comparison signs, too. A stock priced at exactly $5 misses the cutoff even if it passes the other four filters.

    NYSE and NASDAQ selected above five Screen rows, including Price greater than 5 and Trading History Years greater than or equal to 3.
    All five rules apply. Exactly three years of trading history qualifies because that row includes the equals sign.Full size — NYSE and NASDAQ selected above five Screen rows, including Price greater than 5 and Trading History Years greater than or equal to 3. (opens in a new tab)
  3. Step 3

    Rank the candidates on quality, value, and momentum

    In Define Quantification, build the three groups pictured below. Quant A measures quality. Give 25% each to return on invested capital, gross profit to assets, free cash flow margin, and net debt to EBITDA. For the debt measure, choose Lower is better so less debt relative to earnings improves the score. Quant B measures value through free cash flow yield (40%), earnings yield (30%), and enterprise value to EBITDA (30%). Choose Lower is better for the last one.

    Quant C measures momentum, or how strongly the share price has performed. Give 12-Month Return 60% and 6-Month Return 40%. The two measures used here skip the latest month. Set the final Score to 35% A, 25% B, and 40% C. Sort by Score, highest first, and select Top 20.

    Choose Run screening and check the “As of” date. Read the first few rows. A company with the strongest price gains can still finish behind a cheaper company with better profitability because momentum accounts for only part of the score.

    Three weighted factor groups in Define Quantification feed a Score row weighted 35%, 25%, and 40%.
    The first three rows define each group. The Score row determines how much each group influences the final ranking.Full size — Three weighted factor groups in Define Quantification feed a Score row weighted 35%, 25%, and 40%. (opens in a new tab)
  4. Step 4

    Decide how much to hold and when to rebalance

    Under Select Scan Symbols, choose Dynamic so the portfolio can select new names each month. In Set Buy, choose Continue to allocate without an extra buy condition, and set each of the 20 weights to 5%. In Schedule Rebalance, set Monthly, Day 1, at 4 p.m. and confirm the same equal weights. Choose Create.

    On a $10,000 portfolio, 5% gives each stock a $500 target, whether it ranks first or twentieth. Actual holdings can differ from the targets when the strategy buys whole shares. Holdings can also drift away from 5% as prices change between rebalances.

  5. Step 5

    Follow one company across two rebalances

    Open Backtest and select Run Backtest after choosing your settings. The example uses October 3, 2025 through October 5, 2026, $10,000 in initial cash, daily closing prices, and zero fees and slippage. In the saved report, expand Rebalance history. The screen date tells you which day supplied the ranking. The execution date tells you when the backtest applied it.

    The first screen on October 3 put CALM in the basket at a 5% target, applied on October 6. The next screen, on October 31, kept 13 of the 20 names. CALM dropped out and IDCC entered. Count the replacements in your own first two lists. Each replacement can mean a sale and a purchase. If many names change every month, a zero-cost result deserves a closer look. Try a different year with the same rules and see whether that much trading was typical.

    One limit matters for this example. The 2025 screens used an August 2026 exchange membership list. A company that disappeared from the list in the meantime could be missing from the earlier screen. This is survivorship bias. Read the basket changes as an illustration of the rules and take that missing history into account when judging returns.

    Expanded rebalance entry with screen date October 3, execution date October 6, and twenty tickers at 5% each.
    CALM appears first in this October basket. It received the same 5% target as LRN, the twentieth stock.Full size — Expanded rebalance entry with screen date October 3, execution date October 6, and twenty tickers at 5% each. (opens in a new tab)
Try this in Alphavator

Further reading · QuantConnect research guide

Frequently asked questions

Do I need advanced mathematics?

You can start by understanding percentages, rankings, averages, and portfolio weights. More advanced statistics become useful as you evaluate evidence, combine signals, and investigate uncertainty.

Should I combine many factors immediately?

Start with a structure you can explain. Additional factors introduce questions about scaling, weighting, overlap, and missing data. Add them when you have a clear hypothesis and a way to examine their effect.

Does owning more stocks remove risk?

No. More names can still represent similar businesses or market exposures. Review what drives the holdings, how capital is distributed, and how the portfolio behaved during difficult periods.

Build a portfolio you can explain

Create a quant TBOT in Alphavator with one screen and one ranking rule. Inspect the selected symbols and explain why they appear. Then add allocation and rebalancing rules and test the complete process.

Continue with algorithmic trading fundamentals, running a backtest, and understanding backtest results.

For education and product demonstration. Examples are hypothetical. Trading involves risk, including loss of capital.