Learn
Lesson · Algorithmic and Automated Trading

Portfolio, Position, and Risk Engine

Maintain authoritative cash, positions, exposure, open orders, and risk limits before any order is submitted.

Review concepts
Core concepts

What to understand

Keep the boundaries, state, and authority explicit.

1

Position state

Track settled and unsettled quantity, average cost, open orders, and available buying power.

2

Risk budget

Limit loss per trade, total open risk, gross exposure, net exposure, and concentration.

3

Pre-trade decision

Approve, resize, or reject the proposed order before it reaches the broker.

Interactive lab

Portfolio Risk Gate Lab

Process simultaneous signals under account, exposure, concentration, correlation, and risk-per-trade limits.

Portfolio Risk Gate Lab

Deterministic synthetic educational data · no broker or live-market connection

SYSTEM MODEL
Process

Risk the portfolio, not isolated orders

Every proposal must be evaluated against current and pending exposure.

1

Reconcile

Load confirmed positions, cash, open orders, and broker buying power.

2

Evaluate

Calculate incremental and resulting portfolio risk.

3

Decide

Approve, resize, or reject with a recorded reason.

Knowledge check

Check your understanding

Select one answer for each question. Feedback appears immediately, and a wrong choice is answered on its own terms before the rule is restated.

1. Open orders belong in exposure calculations because:

2. Correlation risk means:

3. A risk engine should return:

4. A $50,000 account risks 1% per trade. The entry is $118 and the stop $114. How many shares, and what notional?

Practical rules

  • Reconcile broker and internal positions before sizing.
  • Include pending orders in exposure.
  • Make risk limits independent from strategy code.

Common mistakes

  • Applying risk checks only after fills.
  • Counting correlated positions as independent.
  • Letting each strategy assume it owns the full account.
References

Official reading

These sources cover algorithmic controls, market access, broker APIs, system operations, or security.

SEC · Rule 15c3-5 Market Access Controls
Official rule overview describing pre-trade financial and regulatory risk controls for broker-dealers with market access.

Open official reference ↗

FINRA · Regulatory Notice 15-09
Official guidance on supervision, testing, controls, documentation, and monitoring for algorithmic trading strategies.

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.