TSSL
Price trailing sets a range for buying and selling, then follows prices as they move to find entry and exit points. It helps avoid entering while price is still moving in the same direction.
To use trailing in Gunbot, set a percentage-based trailing range. When the threshold is met, Gunbot tracks price and adjusts the trailing stop for buy or sell orders.
Buy method conditions
Trailing starts when price is below the configured buy level %, the initial trailing stop is placed at buy range % above the current price. As long as price moves downwards, the trailing stop moves downwards too. When price moves upwards, the trailing stop freezes. A buy is allowed when price crosses over the trailing stop price, while the buy level % condition is still met.
Sell method conditions
Trailing starts when price is above the configured gain %, the initial trailing stop is placed at sell range % below the current price. As long as price moves upwards, the trailing stop moves upwards too. When price moves downwards, the trailing stop freezes. A sell is allowed when price crosses under the trailing stop price, while the gain % condition is still met.
Trading example

Example of how trading with this strategy can perform. Details and settings
The infographics below describes what triggers trades with this strategy.


You can select an option to only sell at profit, to avoid the risk of a stop limit sell at loss while you're still in the initial range around bought price. This is called TSSL_TARGET_ONLY.
Minimum profit =
tssl-SELL_RANGE
You can optionally use additional indicators like RSI for extra confirmation on entry and exit points.
Strategy settings for TSSL
Buy settings
| Label | Config Parameter | Default Value | Detailed Description |
|---|---|---|---|
| Buy enabled | BUY_ENABLED | true | Enable or disable buy (long) orders for the strategy. |
| Buy level | BUY_LEVEL | 1 | Percentage below the lowest EMA where buy orders are permitted. |
| Buy range | BUY_RANGE | 0.3 | Percentage range for trailing buy orders. |
Sell settings
| Label | Config Parameter | Default Value | Detailed Description |
|---|---|---|---|
| Sell enabled | SELL_ENABLED | true | Enable or disable sell (short) orders for the strategy. |
| Gain | GAIN | 1 | Gain target above the break-even point for sell orders. |
| Sell range | SELL_RANGE | 0.3 | Percentage range for trailing sell orders. |
| Count sell | COUNT_SELL | 9999 | Number of sell orders that can be executed for a pair before it is disabled. |
Indicators
| Label | Config Parameter | Default Value | Detailed Description |
|---|---|---|---|
| Period | PERIOD | 15 | Time interval for each candlestick used in indicator calculations. Ensure the value is supported by your exchange. |
| Medium EMA | EMA1 | 16 | Medium Exponential Moving Average (EMA) length, in candles. |
| Fast EMA | EMA2 | 8 | Fast Exponential Moving Average (EMA) length, in candles. |
Overview of effects on different order types
| Config Parameter | Affected Order Types | Not Affected Order Types |
|---|---|---|
| Buy Enabled | Strategy buy, DCA buy, RT buy, RT buyback | Strategy sell, Stop limit, Close, RT sell |
| Buy Level | Strategy buy | Strategy sell, Stop limit, Close, RT sell |
| Buy Range | Strategy buy | Strategy sell, Stop limit, Close, RT sell |
| Sell Enabled | Strategy sell, Stop limit, RT sell | Strategy buy, RT buy, RT buyback, Close, DCA buy |
| Gain | Strategy sell | Strategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit |
| Sell Range | Strategy sell | Strategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit |
| Period | Strategy sell, Strategy buy, DCA buy (trigger) | RT buy, RT buyback, RT sell, Close, Stop limit |
| Slow EMA | Strategy buy | Does Not Affect: RT buy, RT buyback, RT sell, Close, Stop limit, Strategy sell, DCA buy |
| Fast EMA | Strategy buy | Does Not Affect: RT buy, RT buyback, RT sell, Close, Stop limit, Strategy sell, DCA buy |