Learn
Lesson · Backtesting and Trading Systems

Position Sizing and Portfolio Accounting

Track cash, equity, buying power, open positions, realized and unrealized P/L, rejected orders, and sizing rules throughout the test.

Review concepts
Core concepts

What to understand

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

1

Sizing rule

Fixed shares, fixed dollars, volatility sizing, and fixed risk create different exposures.

2

Capital constraint

Orders must respect available cash, leverage, and reserved risk.

3

Portfolio state

Every fill updates quantity, cost basis, cash, equity, and open risk.

Interactive lab

Position Sizing and Portfolio Accounting Lab

Apply different sizing methods to simultaneous signals and observe exposure, rejected trades, and final equity.

Position Sizing and Portfolio Accounting Lab

Deterministic synthetic educational data · no live market connection

BACKTEST MODEL
Process

Update the ledger after every event

Portfolio state must be calculated in chronological order.

1

Size

Calculate quantity from the selected capital or risk rule.

2

Validate

Check cash, leverage, concentration, and open-risk limits.

3

Account

Update fills, fees, positions, cash, and mark-to-market equity.

Knowledge check

Check your understanding

Select one answer for each question. Feedback appears immediately.

1. A test that opens every signal without checking cash can:

2. Fixed-risk sizing changes quantity when:

3. Unrealized P/L affects:

4. Equity is $50,000, risk per trade is 1%, and the stop is $2.00 from a $50.00 entry. Fixed-risk sizing gives:

Practical rules

  • Process signals in a documented order when capital is limited.
  • Track cash and open positions after every fill.
  • Apply the same sizing rule throughout each test.

Common mistakes

  • Sizing from ending equity instead of current equity.
  • Ignoring rejected orders.
  • Combining trade P/L without portfolio-level overlap.
References

Official reading

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

CME Group · Trading Simulator
Provides a practice environment for testing trading decisions without live capital.

Open official reference ↗

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

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.