Tssl (trailing stop / stop limit)
Last updated
Last updated
Set a range to trail for better entry or exit points, by following prices while they are moving down- or upwards. This way Gunbot won't trade while prices are still moving in the same direction.
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.
Following settings options are available for tssl
and can be set in the strategy configurator of the GUI or the strategies section of the config.js file.
These settings are global and apply to all pairs running this strategy. When you want a specific parameter to be different for one or more pairs, use an override at the pair level.
Using the BUY_METHOD
and SELL_METHOD
parameters you can combine different methods for buying and selling. This strategy page assumes both BUY_METHOD
and SELL_METHOD
are set to tssl
. Accepted values are all strategy names as listed here.
Buy settings are the primary trigger for buy orders. These parameters control the execution of buy orders when using tssl
as buy method.
Set this to false to prevent Gunbot from placing buy orders.
This sets the minimum target for buy trailing at a percentage below the lowest EMA. Trailing must finish below this level.
When you set this to 1, trailing for a buy order must finish at least 1% below the lowest EMA.
This sets the buy range for trailing.
Setting a range of 0.5% at a starting price of 0.1 would set a range between 0.0995 and 0.1005.
As long as prices keep moving downwards, the range moves down along with the price. As soon as prices start going upward, the range freezes and a buy order is placed when the price crosses the upper boundary of the range.
"Never Buy Above". Use this to only allow buy orders below the last sell rate.
This sets the minimum percentage difference between the last sell order and the next buy. The default setting of 0 disables this option.
When set to 1, Gunbot will only place a buy order when the strategy buy criteria meet and price is at least 1% below the last sell price.
With this setting enabled, Gunbot will try to take any buy chance between the strategy entry point and your setting for TBUY_RANGE
.
As soon as the ask price drops below the upper border of this range (called "Take Buy"), it will trail down with a range of TBUY_RANGE
and place a buy order as soon as the ask price crosses up "Take Buy". Confirming indicators in use are respected.
Normal strategy buy orders are still possible while using TAKE_BUY
.
This option should not be used together with reversal trading.
This sets the buy range for TAKE_BUY
.
When set to 0.5, the initial trailing stop is set 0.5% above the entry point defined by BUY_LEVEL
.
Sell settings are the primary trigger for sell orders. These parameters control the execution of sell orders when using tssl
as sell method.
Set this to false to prevent Gunbot from placing sell orders.
This sets the starting point for sell trailing. Gunbot will start trailing once price reaches the set percentage above the break-even point.
When you set this to 1, trailing for a sell order starts when price reaches a point 1% above the average bought price.
This sets the sell range for trailing.
Setting a range of 0.5% at a starting price of 0.1 would set a range between 0.0995 and 0.1005.
As long as prices keep moving upwards, the range moves up along with the price. As soon as prices start going downward, the range freezes and a sell order is placed when the prices crosses the lower boundary of the range.
With this setting enabled, Gunbot will try to take any possible profit between the break-even point and your strategy exit point. This can be useful, for example, on days where the markets move very slowly.
It works by trailing prices upwards between the break-even point and the strategy exit point, with a configurable range for trailing: TP_RANGE
. A sell order will be placed when the trailing stop limit is hit or strategy sell conditions are reached. Confirming indicators in use are respected.
Sells at minimal loss are possible when using TAKE_PROFIT
, acting as a sort of mini stop loss.
This option should not be used together with reversal trading or DOUBLE_CHECK_GAIN
This sets the sell range for TAKE_PROFIT
.
When set to 0.5, the initial trailing stop is set 0.5% below the break-even point.
Enable this to only allow sell orders above the break-even point.
This is an extra check that looks at your recent trading history to verify GAIN
will be reached before placing a sell order.
Relevant indicators for trading with tssl.
These settings have a direct effect on trading with tssl
, because BUY_LEVEL
is dependant on EMA.
This sets the candlestick period used for trading, this affects all indicators within the strategy.
Only use supported values.
Setting a short period allows you to trade on shorter trends, but be aware that these will be noisier than longer periods.
Set this to the amount of candlesticks you want to use for your slow EMA. The closing price for each candle is used in the slow EMA calculation.
For example: when you set PERIOD
to 5, and want to use 2h for slow EMA – you need to set EMA1
to 24 (24 * 5 mins).
Set this to the amount of candlesticks you want to use for your medium EMA. The closing price for each candle is used in the fast EMA calculation.
For example: when you set PERIOD
to 5, and want to use 1h for medium EMA – you need to set EMA2
to 12 (12 * 5 mins).
Parameters to configure additional trailing for various types of orders. Trailing works just like it does for the TSSL strategy, the difference being the starting point of trailing.
Because tssl already trails for buy and sell orders, there is no benefit of enabling further trailing for strategy buy or sell orders.
The following parameters in config.js
have no function for this strategy and act as placeholder.