Learn
Lesson · Backtesting and Trading Systems

Transaction Costs, Spread, Slippage, and Liquidity

Deduct commissions, fees, bid-ask spread, slippage, and size-dependent market impact from every simulated entry, exit, and rebalance.

Review concepts
Core concepts

What to understand

Keep each definition operational so it can be implemented and tested.

1

Explicit cost

Commissions, exchange fees, and regulatory charges are directly deducted.

2

Spread and slippage

The executable price differs from the chart midpoint or signal price.

3

Market impact

Larger orders can consume available liquidity and move the average fill.

Interactive lab

Gross Versus Net Performance Lab

Increase turnover, spread, slippage, and order size. Compare gross and net equity curves.

Gross Versus Net Performance Lab

Deterministic synthetic educational data · no live market connection

BACKTEST MODEL
Process

Charge costs at the event

Do not subtract an arbitrary amount only at the end.

1

Estimate

Define instrument- and regime-specific cost assumptions.

2

Apply

Charge both entry and exit, including partial fills and rebalances.

3

Stress

Retest with wider spreads, higher volatility, and lower liquidity.

Knowledge check

Check your understanding

Select one answer for each question. Feedback appears immediately.

1. A round trip normally crosses costs:

2. Which strategy is most sensitive to small per-trade costs?

3. Market impact generally becomes more relevant when:

4. Commission 1 bps, spread 8 bps, slippage 5 bps per side and impact 2.2 bps, against a 14 bps gross edge per trade. The net edge per trade is:

Practical rules

  • Report gross and net performance separately.
  • Use conservative costs for stressed conditions.
  • Measure turnover and capacity with the tested order size.

Common mistakes

  • Using midpoint prices for every fill.
  • Applying costs only to losses.
  • Assuming zero slippage in volatile or illiquid markets.
References

Official reading

The labs are simplified simulations. These sources cover historical performance, data, costs, or execution limitations.

Investor.gov · Understanding Fees
Reviews how fees and trading costs reduce investment results over time.

Open official reference ↗

FINRA · Common Questions About Online Trading
Explains that market orders can fill away from quoted prices and limit orders may not execute.

Open official reference ↗

Kept in this browser only, for you. Nothing is sent anywhere and nothing checks it. Carry it to another device.

Feedback and recommendations

Something to change about this lesson? Write it down, tick it off when it is handled, and export the list when you want to act on it. Kept in this browser only: nothing is sent anywhere, and nobody is notified.

No recommendations yet for this lesson.