Skip to content
Wildflower
Join waitlist

Exit when your conditions hold

A rule in Continuous trade protection that closes the whole trade at market on the first candle where your indicator conditions all hold.

Updated 29 November 2026 · 2 minute read

The condition exit lives in the Continuous trade protection block. It closes the whole trade at market on the first candle, after you get in, where your conditions all hold. It works the same way in Backtest and in the Bot.

What you set

  • The chart it reads. How many minutes per candle.
  • Conditions that close a long. One or more rows.
  • Conditions that close a short. One or more rows.

You can give one list or both. The rows are the same ones the indicator condition gate uses, and they are read the same way. Every row must be on the exit's own chart.

Some ways to use it

  • Close a long when a candle closes under its 20-candle moving average.
  • Close a short when the RSI climbs back above a level.
  • Close a long when price closes below the lower edge of a channel.

What happens when it fires

The trade is closed at market and your stop and target are cancelled with it. It fires once.

The averages it reads start from the candles before your trade. So they are ready on the first candle, as long as your warmup holds enough candles.

Every number is yours

Nothing has a default. The builder names any number a row needs. If the exit is on with no conditions, or a row is on another chart, the strategy won't run until you fix it. A row that needs more candles than your warmup holds is refused when you put the strategy on an account.

What's next

Entries and exits.