Library · Trading Mechanics
Entry & Exit
The entry is the fill that opens a position and the exit is the fill that closes it; together they fix the result of a trade before costs.
Why it matters
A position has a beginning and an end, and the two prices between them decide the outcome. Everything a platform reports about a trade, such as profit, loss, percentage return and distance to liquidation, is measured from the entry price.
“Entry” and “exit” sound like single moments. In practice each can be one fill or many, at prices that differ from the ones that were intended.
What it looks like
The entry is the trade that opens a position. The exit is the trade that closes it. Being flat means holding no position.
The direction of each order depends on the direction of the position.
In plain words
Think of a journey on a toll road. Where you join and where you leave decide the distance travelled. It does not matter how fast you drove in between or which exits you considered and passed. Only the two ramps count, and until you take the second one the journey is not over.
How entries happen
An entry is produced by an order, and the order type shapes the result:
- A market order enters at once, at the available price.
- A limit order enters only if the market comes to its price, which may never happen.
- A stop order enters only after the market has moved to a trigger.
The entry price is the price of the fill, not the price on the order ticket. If a market buy was expected at 100.10 and filled at 100.18, the entry is 100.18.
Average entry price
- First fill5 units at 100.
- Second fill5 units at 96.
- Position10 units, average entry 98.
A position can be built from several fills, either because one order filled in pieces or because the trader added to it. This is called scaling in. Most platforms then show a single average entry price, weighted by the size of each fill.
Average entry = total cost of all fills / total unitsAdding to a position moves the average entry toward the price of the new fill.How exits happen
A manual close, a take profit and a stop loss are all exits the trader sets up. Liquidation is an exit imposed by the exchange on leveraged positions. Dated futures and options also end at expiry, whether or not anyone acts.
An exit can be partial. Closing part of a position is called scaling out. The closed part has a final result. The remainder stays open at the same average entry price.
Going deeper
Planned price and actual price
A plan may contain an entry level, a stop level and a target level. The trade that actually happens contains fills. Spread, slippage and unfilled orders are the difference between the two, and they apply at both ends of the trade.
The exit fixes the result
While a position is open, its gain or loss is unrealized and keeps changing. The exit converts it into a realized figure. See realized and unrealized P&L.
Closing versus reversing
On many derivatives accounts, an order larger than the position it is meant to close does not stop at zero. Selling 15 units against a long of 10 leaves a short of 5. A reduce-only instruction prevents this by limiting the order to the size of the existing position.
A hypothetical position with two entries and two exitsHypothetical illustration
An asset trades at 100.
- A trader buys 5 units at 100.
- Price falls and the trader buys 5 more units at 96. The position is now 10 units with an average entry of 98.
- Price rises to 104. The trader sells 5 units. Measured from the average entry, that half gained (104 - 98) / 98, about 6.1%. It is now realized.
- Price drifts back to 98 and the trader sells the remaining 5 units, exactly at the average entry. That half gained 0%.
Across the whole position the gain is 30 on a total cost of 980, about 3.1%, before fees. The platform does not track the two purchases separately. It reports one position with one average entry.
What it does NOT mean
- The entry price is not the price that was clicked. It is the average price of the fills that opened the position.
- A good entry does not make a good trade. The result is set only when the position is closed.
- A lower average entry is not a recovery. Adding to a losing long lowers the average and also enlarges the position that is exposed to further falls.
- An exit order in place is not an exit. Until it fills, the position is still open.
Common mistakes
- Remembering the first fill only. After adding to a position, gains and losses are measured from the average entry, not from the first price.
- Treating a partial exit as a full one. The remaining size is still exposed to the market.
- Leaving exit orders behind. A stop or target that outlives its position can open an unintended new one unless it is reduce-only or cancelled.
- Ignoring costs at both ends. Fees, spread and slippage apply to the entry and again to the exit.
Risks and limitations
- Neither the entry nor the exit price is certain in advance. Both depend on the market at the moment of the fill.
- Exits are hardest to obtain at a chosen price in the conditions where they matter most.
- On leveraged products the exit may be taken out of the trader’s hands by liquidation.
- This page describes how positions are opened and closed, not when or where to do either.
Key takeaway
Entry and exit are the fills that open and close a position. They can each be several fills, they are measured by average price, and the result is fixed only by the exit.
Sources and further reading
- Trading and Exchanges: Market Microstructure for Practitioners, Larry Harris (2003). Orders, executions and positions
- Options, Futures, and Other Derivatives, John C. Hull. Opening and closing out positions in futures markets