Skip to content

Trailing TP and Trailing SL ​

Trailing is an optional setting. A regular Take-Profit and Stop-Loss stay in place; the trailing variants move along with the price while it goes into profit. In all presets trailing is off.

What it is ​

Trailing TP. Works like in Pionex. No take-profit order is placed on the exchange: the take-profit price from the settings becomes a threshold. Once price reaches it, the bot follows the peak and closes the whole position at market if price pulls back from the peak by the set percentage (for Long — to peak × (1 − trailing %)). If price keeps rising after the threshold, the position closes above the regular take-profit; if it turns at once — slightly below the peak.

The bot counts a new peak once price has held it for two checks in a row (a check runs once a minute): a single spike does not move the peak. So the close on a pullback may come up to a minute late.

Four more rules:

  • after an averaging order the take-profit price is recalculated from the new average, and the trailing starts over;
  • Trailing TP closes only in profit — not below the average entry plus a small allowance for fees. Below that the stop closes the position;
  • if the close at market fails, Trailing TP is turned off for this trade, and the bot places a regular take-profit order;
  • if you close the position manually on the exchange, the bot notices it and finishes the cycle: on futures at once, on spot within a few minutes.

Trailing SL. The stop is pulled up behind the peak: as price goes into profit, the protection moves up (for Long) and locks in part of the gain. The peak is counted the same way as for Trailing TP. The stop is moved no more often than once every 60 seconds and only if the new level differs from the current one by at least 0.05 %. How exactly the new level is calculated is decided by the strategy:

StrategyWhat it does
% below the peakThe stop sits trailing % below the price maximum; it closes on a pullback of that size
Breakeven after profitThe stop is moved to breakeven once the position is in profit
Following the targetA moving target; there is no separate description
A tick below the highAn offset from the maximum measured in price ticks; there is no separate description
ATR-basedAn offset based on volatility (ATR on 15-minute candles)

The strategy works only if Trailing SL % is set — the wizard shows the Trailing SL type field only after the percentage is entered. The percentage you enter is the basis for any of the strategies.

Where it is in the bot ​

When creating: 🏠 Home → 🤖 Bots → ➕ DCA bot — the wizard opens in the Sync app, the Own values block:

  • Trailing TP, % — the pullback from the peak at which the bot closes the position, for example 0.5.
  • Trailing SL, % — the offset of the stop, for example 1.
  • Trailing SL type — appears once Trailing SL % is entered, five options.

An empty field means trailing is off. On a running bot trailing cannot be changed.

How to set it up ​

  1. Enter Trailing TP, % — from 0.01 to 50.00, for example 0.5: after the take-profit price the bot closes the position on a pullback of this size from the peak.
  2. Enter Trailing SL, %, for example 1.
  3. If needed, choose the strategy in Trailing SL type, for example % below the peak.
  4. Changed your mind — clear the field: with empty trailing fields the fixed TP and SL stay.

Example with numbers ​

Long, average entry price 100.00, Trailing SL 1 % with the % below the peak strategy.

EventPeakStop
Entry100.00the regular SL from the settings, for example 93.00
Price rose to 103.00103.00103.00 × 0.99 = 101.97
Price rose to 105.00105.00105.00 × 0.99 = 103.95
Price pulled back to 103.95105.00it fires: the position is closed with a profit of ≈ 3.95 %

Long, average 100.00, take-profit 3 % (103.00), Trailing TP 1 %:

EventPeakWhat the bot does
Price reached 103.00103.00Trailing TP is on; there is no take-profit order on the exchange
Price rose to 106.00106.00The closing level is 106.00 × 0.99 = 104.94
Price pulled back to 104.94106.00The position is closed at market with a profit of ≈ 4.9 %

Without Trailing TP the 103.00 take-profit would have closed the position with a 3 % profit.

Limits and allowed values ​

ParameterRangeNote
Trailing TP0.01-50 %A dot or a comma for a fraction; no take-profit order on the exchange, the close is at market
Trailing SL0.01-50 %Without it the strategy does nothing
Trailing SL strategy5 optionsNot chosen (“—”) — the stop follows the best price at the set percentage, like “% below the peak”
Moving the stopno more than once every 60 s, step at least 0.05 %—
Changing it on a live botnoOnly at creation
Marketspot and futuresOn spot Trailing TP and the stop work just like on futures; the price step and ATR come from the spot market

Common errors and what the wizard says ​

  • “Allowed: 0.01 to 50 %” under Trailing TP, % or Trailing SL, % — not a number was entered or the percentage is outside the range.
  • Trailing SL is chosen but the stop does not move — check that Trailing SL % is set, not only the strategy, and that price has actually gone into profit from the average.