FREE FINANCIAL EDUCATION
Partial-fill protection and reserved risk
Compute actual average entry and risk for a partially filled order.
What you will learn
Prerequisites: Weighted average fills, open orders and protective exits.
- Compute actual average entry and risk for a partially filled order.
- Keep pending quantity in reserved exposure until its state is confirmed.
- Synchronize protective exits with actual position changes.
Mechanism and decision rules
A partially filled entry creates two different objects: an actual position and a remaining order that may still execute. Protect the filled quantity and reserve capacity for the live remainder under the strategy’s rules. Treating the order as all-or-nothing can leave real exposure unprotected or create an oversized exit that opens an unintended opposite position.
Compute average entry from actual fill quantities and prices. As new fills arrive, update position size, average cost and protective order quantity. Cancellation is not complete until confirmed, and late fills can arrive during the process. The risk budget should distinguish current filled risk from contingent pending risk without counting the same quantity twice.
Worked example · synthetic data
A synthetic 300-share entry receives 80 shares at ₹100 and 40 at ₹100.50. Filled quantity is 120 and cost ₹12,020, average ₹100.1667. With a ₹98 stop reference, current price-distance risk is ₹260:80×2+40×2.50.
The remaining 180 shares are still pending. They cannot be treated as either certainly filled or certainly absent. If the plan cancels them, the system must wait for confirmed order state and reconcile any late fills. A protective sell for 300 shares while only 120 are held could create an unintended short if it executes in full.
Failure modes and limits
Broker bracket behavior varies and should be tested directly. Stop slippage can exceed the price-distance estimate. Multiple fills and partial exits require robust accounting. A local position snapshot can lag broker execution, so recovery must reconcile authoritative records before new orders.
Practice case
An order requests 200 shares;60 fill at 250 and 40 at 251. Stop reference is 247. Compute filled quantity, average entry and current price-distance risk. How many requested shares remain pending before any cancellation?
Reveal the worked answer
Filled quantity 100, cost ₹25,040 and average ₹250.40. Risk is 60×3+40×4=₹340. The remaining 100 requested shares are pending unless confirmed filled, canceled or rejected. Their contingent risk must still be considered.
Check your understanding
Sources and next steps
The lesson, calculations and synthetic cases are original educational material. References explain underlying contract or chart conventions; none validates the profitability of a trading rule. Actual contract specifications, settlement obligations and charges must be checked before trading.
Explore OHLCV data in the chart lab · Explore volume-at-price and TPO data · Practice library
