Exit strategy: how a rule closes a trade
By Oalgo · Last reviewed
An exit strategy is the part of a rule that closes a trade. The entry says when to open, and the exit says when to close. Results often depend on the exit as much as on the entry, so a rule with a good entry can still behave badly with a weak exit. The builder offers several exit tools, which can be used alone or together.
Which exits does the builder offer?
#- A stop loss, set as a percentage away from the entry, in the exit settings.
- An exit target, set as a percentage on the other side of the entry. A Multi-TP block can split the position across two targets.
- A trailing stop that moves with price, and a break-even stop that moves the stop to the entry once the trade has reached a set gain.
- A Time Exit that closes a trade after a set number of candles, at that candle's closing price.
What does a worked example look like?
#All numbers are made up. A long trade enters at 100.00 with an exit target at 101.50, a stop at 99.50 and a Time Exit of 12 candles. In the first trade, candle 5 reaches 101.50 and the trade closes at the target. In the second, price drifts sideways and reaches neither level. Candle 12 closes at 100.20, and the Time Exit closes the trade there. Two trades share one entry rule and end under two different exits.
Why does the exit count matter?
#Two rules with the same entry and different exits give different trade lists. The record shows how many trades closed at each exit, and that count tells you how much of the result comes from the exit. Read it before the entry, since an exit that closes most trades can hide a weak entry.
| Exit | Closes the trade when | Check first |
|---|---|---|
| Stop loss | price moves against the entry by the set percentage | whether the test fills at the stop level or at a worse price |
| Exit target | price reaches the target | how the test fills the target, at the level or at a later price |
| Trailing stop | price falls back by the trail distance | whether the trail moves on the same candle it is tested |
| Time Exit | the set number of candles has passed | the candle size, since the count does not read the clock |
What can an exit test not show?
#A backtest fills exits at the prices the rule sets, and a live fill can differ. Slippage and venue fees move the real outcome. The terms list slippage and gap risk among the factors that a simulation does not fully account for, so a clean exit on paper is not a promise about a live one.
Write the exits down before the first test and keep them fixed for that run. Oalgo AI builds the exit blocks from your words, you check each setting on the canvas, and the backtest and forward test run on simulated funds. Go Live stays a separate, optional step.
Read next
- What is a stop loss? How to set oneA stop loss closes a trade when price moves a set distance against it. Learn how a stop is set, what it cannot promise, and what a Live Strategy needs.
- Trailing stop explained: how it follows priceA trailing stop moves with price in the trade's favour and never back. Learn how it is calculated, a candle-by-candle example, and how to set it in Oalgo.
- Intraday trading strategy: rules that close within the dayAn intraday trading strategy opens and closes trades on the same day. See how to set a candle-count exit, a worked example and what a test cannot show.