Take profit ladder: how the bot splits a position across targets

Updated:

A take profit ladder means closing a short in several pieces instead of one. This setting, "How many take-profits and how we split the size", tells the Snapback bot how many parts to break the position into (one, two or three take-profits) and what share of the size each one closes. One field in the wizard picks both the count and the split.

What it means in plain words

Instead of closing a short in one go, you can take the position off in parts: some at a near target, some at a farther one. That way part of the profit is locked in earlier, and the rest still has a chance to reach the far target. The split defines what share of the position belongs to each target.

Why it exists

Several take-profits let you lock in part of the result early and still leave part for a longer move. Also, the first or second take-profit decides the moment when the stop moves to breakeven.

How it works in the code

Only these splits are allowed (percent of the size):

  • 1 take-profit: 100;
  • 2 take-profits: 50/50, 60/40, 70/30;
  • 3 take-profits: 34/33/33, 57/29/14, 50/30/20, 20/30/50.

The first number is the share of the first take-profit (the one closest to the entry), and the last number is the share of the last, farthest one. The target prices are explained in the article on the take-profit target. The sizes of the early take-profits are rounded down to the exchange's quantity step, and the last one closes everything that remains, so no dust is left over.

In addition, the configuration rejects a split that is not in the allowed list for that count, and does not allow moving the stop to breakeven after a take-profit whose number is not less than the count.

Illustration of the mechanism only, not advice: a position of 100 units with a 50/30/20 split. The first take-profit closes 50, the second 30, the third 20.

An important catch: each share multiplied by the price must not be below the exchange's minimum order for the coin (MIN_NOTIONAL). The thinner the smallest slice, the bigger the position has to be. Illustrative example: if the minimum is 5 USDT, a split with a thinnest slice of 14% needs a position of at least 36 USDT (5 / 0.14, rounded up), while with a 50% slice 10 USDT is enough. The wizard shows such a minimum next to each option ("from N USDT"), calculated for a typical minimum of 5 USDT. For some coins the minimum may be stricter.

Allowed values and defaults

Count: 1, 2 or 3. Split: only those listed above. The code has no defaults. The form starts on "3 take-profits: 50/30/20".

What happens with more or fewer targets

  • More take-profits: profit is taken in smaller pieces, with more orders, and the thinnest slice demands a bigger position.
  • Fewer take-profits: simpler logic, but all or almost all of the position closes at one target.
  • A bigger share on the near target: more is locked in early. A bigger share on the far target: more depends on whether the price travels far.

How it connects to other settings

Common mistakes

  • Choosing an uneven split and not noticing the minimum position size.
  • Thinking the shares can be set freely.
  • Expecting equal sizes without accounting for rounding: the last take-profit picks up the remainder.

Where to find it in the bot wizard

The "New bot" or "Edit" form, the "Exit" block, the drop-down "How many take-profits and how we split the size". Items look like "3 take-profits — from 25 USDT". Under the list is the hint: "The smallest slice must exceed the exchange's minimum order, otherwise the trade will not open."

Frequently asked questions

How many take-profits can I set in the bot?

One, two or three. For each count there is a fixed set of allowed splits; you cannot enter an arbitrary split.

What does a 50/30/20 split mean?

The first take-profit closes 50% of the position, the second 30%, and the third the remaining 20%.

Why did the bot not open a trade because of the split?

The thinnest slice multiplied by the price must not be below the exchange's minimum order for that coin. Otherwise the position is too small for that split.

Can I split the position into shares that are not in the list?

No. Only the splits listed in this article are allowed.

Read also