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.
A price path across 12 candles, with three horizontal lines: an exit target above the entry, a stop below it, and a trailing stop that steps up as the path rises. A vertical marker at candle 12 reads 'Time Exit after 12 candles'.Exit target 101.50Entry 100.00Stop 99.50Trailing stopTime Exit after12 candlesCandle 1Candle 12
Made-up levels and path. The Time Exit is counted in candles, not in clock time.

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.

ExitCloses the trade whenCheck first
Stop lossprice moves against the entry by the set percentagewhether the test fills at the stop level or at a worse price
Exit targetprice reaches the targethow the test fills the target, at the level or at a later price
Trailing stopprice falls back by the trail distancewhether the trail moves on the same candle it is tested
Time Exitthe set number of candles has passedthe 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