A take-profit rule requests an exit after a favourable condition. Separate its trigger from order mechanics, actual fills, remaining exposure and net profit.
Take-profit rule
A take-profit rule is a predeclared instruction to close all or part of an existing position when a specified favourable price, return or profit condition is met. It turns a profit objective into an exit rule. The practical consequence is that a strategy may leave a trade before its forecast horizon ends—and the requested exit may execute differently from the target.
For a long position, a fixed price target normally lies above the entry price; for a short position, it lies below. A rule can also use a volatility-scaled threshold or a portfolio P&L condition. Those are different specifications, not interchangeable meanings of a universal “take-profit order.”
What happens at 105?
Consider a fictional stock quoted in USD per share. An existing long position contains 10 shares bought at 100. The strategy asks to sell all remaining shares when its chosen observable price reference is at or above 105. The reference might be a last trade, a bid or a bar close; this example does not assume they coincide. The monitoring schedule and reference must be specified before applying the rule.
If all 10 shares actually sell at 105, gross realised profit is
10(105−100)=50 USD.
This reconciles an entry cash outflow of USD 1,000 with sale proceeds of USD 1,050, before costs. An observed price reaching the threshold establishes the rule's condition, not those sale proceeds.
Fictional long 10 shares bought at USD 100 with target USD 105. After the trigger, 10 filled at 105 yields USD 50 gross realised profit; only 4 filled yields USD 20 with 6 shares still open; no fill yields zero realised gross with all 10 still open.
Original conditional execution diagram, in USD per share. Fills are stipulated possibilities, not market quotes or simulated probabilities. Gross realised amounts exclude costs and the unrealised P&L of any remaining shares.
If only 4 shares fill at 105, the closed portion has USD 20 gross realised profit and 6 shares remain exposed. USD 20 is not the total P&L of the original position: that also requires valuing the shares still held. If nothing fills, realised gross profit from the exit is zero, while all 10 shares remain exposed.
For the complete sale at 105, suppose total explicit fees across entry and exit are USD 2. Net profit is then USD 48, with no dividends, financing, taxes or currency conversion in this illustration. Transaction costs can change the net result; price effects already contained in actual fills should not be charged again as an extra deduction.
The rule and the order are separate decisions
A strategy could implement a profit target with a resting sell limit order, or observe its condition and then submit an exit order. These produce different timing and execution risks.
Implementation choice
What it controls
What remains uncertain
Resting sell limit at the target
The minimum acceptable sale price, before fees
Whether enough quantity executes before cancellation or expiry
Observe a condition, then submit a market sell
When the strategy requests immediate execution
The prices and quantities available when the order reaches the market
Broker-managed attached profit-taking order
The specific broker's supported order workflow
Trigger reference, activation, trading hours and handling of linked orders or partial fills
The SEC's order definitions distinguish a sell limit's price constraint from a market order's uncertain fill price. Its online investing guidance also warns that a limit may remain unfilled and that traders should verify execution. A last-traded price is not a commitment to buy the full position from you.
As one broker-specific example, Interactive Brokers describes a buy bracket with a higher sell limit and a lower sell stop. That documentation does not establish a universal implementation. A system must use its actual broker and venue rules for order activation, cancellation and remaining quantities. Requesting an exit or cancellation does not establish that the position is flat.
Testing the exit policy
In a backtest, a take-profit condition is path-dependent: whether the price reached it before a stop-loss rule or a time exit can determine the outcome. A daily high reaching a target does not by itself prove the strategy could sell there. If the same bar also crosses the stop, its high and low do not reveal which event came first. Order submission timing and a declared fill model must accompany the trigger logic.
The owned lesson Labels and Overlapping Outcomes connects first-barrier exits to research labels and explains this intrabar ambiguity. The full lesson requires membership; the linked page provides a public preview.
An exit specification should settle the price reference, monitoring times, full versus partial closure, order type, expiry and what happens to unfilled shares. If profit, loss and time conditions interact, their precedence must also be declared. Changing the target changes the policy being tested. Selecting the best threshold after trying many alternatives creates backtest overfitting risk; neither this example nor the term itself identifies an optimal threshold.
Sources
Marcos López de Prado, Advances in Financial Machine Learning (Wiley, 2018), §3.4 on first-barrier labels and §§13.2–13.3 on exit trading rules and parameter calibration. The conditional trade ledger and figure here are original.