Skip to content
Skip to Content
Crossbowdocs

Exits Text Syntax

Write a whole take-profit, stop-loss or timed-sell list as one line of text, and paste it between tasks.

2 min read

Each exits list's Text button (Advanced view) edits it as one line. Type or paste, then press Apply (⌘ Enter). Copy copies the text for another task.

Typing a whole take-profit list and a stop loss as text, then Apply.

Syntax

Separate entries with commas, semicolons or new lines. Percentages may carry % and a leading +.

Take profit

gain%:sell%, with an optional @timeout:sell%
50:25@30s:5, 100:50, 300:100
  • 50:25: at +50%, sell 25% of what's left.
  • @30s:5: if +50% isn't reached within 30 seconds, sell 5% and move on (:0 sells nothing).
  • 100:50: at +100%, sell 50%.
  • 300:100: at +300%, sell the rest.

Stop loss

-drop%:sell%
-20:50, -40:100

At −20%, sell half; at −40%, the rest. The minus sign is optional.

Timed sells

time:sell%
5s:25, 10s:25, 2m:100

At 5 seconds, sell 25%; at 10 seconds, 25% of what's left; at 2 minutes, the rest.

Times

A whole number with s, m or h (30s, 2m, 1h); a bare number is seconds. Take-profit timeouts run 1 second to 24 hours, timed sells to 7 days.

Recipes

Take profit: half at 2x, the rest at 5x
100:50, 400:100
Stop loss: cut losses at −35%
-35:100
Take profit that gives each level a minute
50:30@1m:0, 150:50@1m:20, 400:100
Timed: take risk off early, whatever the price
30s:50, 5m:100

Errors

The editor names the entry it can't read:

MessageMeaning
Entry 2: expected gain%:sell%, found '…'Not in the list's format.
Entry 1: invalid gain % 'x'Not a number.
Entry 1: invalid duration 'x' (use e.g. 30s, 2m or 1h)Not a whole number with s, m or h. 1.5m is refused; write 90s.
21 entries; a list holds at most 20Too many entries.
  • Stop loss says expected -loss%:sell%, timed sells expected time:sell%.
  • An out-of-range number (50:150) passes the text box, then is marked on its row after Apply.
  • Levels must be in order: take-profit gains rising, stop-loss drops deepening, timed sells later each time.

On this page