-
Notifications
You must be signed in to change notification settings - Fork 121
TSSL margin_pt
This page describes how margin trading on Bitmex works with the TSSL strategy. The triggers for trades are slightly different than in the same strategy for regular trading.
Contents:
Using tssl (margin) is only meaningful with
MEAN_REVERSION
enabled. The info below assumes you have set this.
The expected behavior for margin trading with Gunbot is that it will open one position, either long or short, and close this position when the target is reached. When the stop is hit before profitably closing a trade, Gunbot will place a stop order at loss. After closing a position, Gunbot will again look to open a new long or short position. Gunbot will not add to existing open positions.
Please don't manually add to or reduce positions opened by Gunbot, unless you stop running Gunbot on this trading pair until you've closed this position.
A long position is opened when ask is below LONG_LEVEL
and buy trailing finishes.
A short position is opened when bid is above SHORT_LEVEL
and sell trailing finishes.
A position is closed when the desired ROE
is reached.
A position is closed at loss when STOP_LIMIT
is reached.
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.
Margin settings control settings like leverage and the target for ROE.
These parameters are relevant when using tssl
as buy and/or sell method.
Parameter | Default value | Description |
---|---|---|
1 |
Values: numerical – represent a percentage.
When you set this to 1, buy orders will only be placed when the current price is at least 1% above the currently highest EMA. |
|
1 |
Values: numerical – represent a percentage.
When you set this to 1, sell orders will only be placed when the current price is at least 1% below the currently lowest EMA. |
|
1 |
Values: numerical - represents a percentage.
|
|
0 |
Values: numerical – between 0 and 100
|
|
false |
Values: true or false.
|
|
1 |
Values: numerical – represent a percentage of ROE.
|
|
false |
Values: true or false.
|
|
0 |
Values: numerical - represents a percentage.
It is possible to use negative values, this will increase the chance of receiving maker fees. Example when set to 1 and a buy signal occurs at an ask price of 100: a limit order gets placed at a rate of 101. When set to -1 and a buy signal occurs at an ask price of 100: a limit order gets placed at a rate of 99. |
|
false |
Values: true or false.
This setting must be enabled to use Long and short levels are reversed in this mode, long level is placed below EMA, short level is placed above EMA. |
Buy settings are the primary trigger for opening long positions.
These parameters control the execution of buy orders when using tssl
as buy method.
Parameter | Default value | Description |
---|---|---|
0.5 |
Values: numerical – represent a percentage.
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. |
|
true |
Values: true or false.
|
|
0 |
Values: numerical, represents a percentage
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. |
Sell settings are the primary trigger for opening short positions.
These parameters control the execution of sell orders when using tssl
as sell method.
Parameter | Default value | Description |
---|---|---|
0.5 |
Values: numerical – represent a percentage.
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. |
|
true |
Values: true or false.
|
These settings have a direct effect on buying with tssl
, because BUY_LEVEL
is dependant on EMA.
Parameter | Default value | Description |
---|---|---|
15 |
Values: numerical– represents candlestick size in minutes.
Setting a short period allows you to trade on shorter trends, but be aware that these will be noisier than longer periods. |
|
16 |
Values: numerical – represents a number of candlesticks.
For example: when you set |
|
8 |
Values: numerical – represents a number of candlesticks.
For example: when you set |
DCA is not intented to be used for margin trading.
RT is not intented to be used for margin trading.
TrailMe is not intented to be used for margin trading.
The following parameters in config.js
have no function for this strategy and act as placeholder.
Parameter | Description |
---|---|
ATRX |
Placeholder. |
ATR_PERIOD |
Placeholder. |
BUYLVL1 |
Placeholder. |
BUYLVL2 |
Placeholder. |
BUYLVL3 |
Placeholder. |
BUYLVL |
Placeholder. |
BUY_LEVEL |
Placeholder. |
DISPLACEMENT |
Placeholder. |
DOUBLE_CHECK_GAIN |
Placeholder. |
FAST_SMA |
Placeholder. |
GAIN |
Placeholder. |
HIGH_BB |
Placeholder. |
ICHIMOKU_PROTECTION |
Placeholder. |
KIJUN_BUY |
Placeholder. |
KIJUN_CLOSE |
Placeholder. |
KIJUN_PERIOD |
Placeholder. |
KIJUN_SELL |
Placeholder. |
KIJUN_STOP |
Placeholder. |
KUMO_BUY |
Placeholder. |
KUMO_CLOSE |
Placeholder. |
KUMO_SELL |
Placeholder. |
KUMO_SENTIMENTS |
Placeholder. |
KUMO_STOP |
Placeholder. |
LOW_BB |
Placeholder. |
MACD_LONG |
Placeholder. |
MACD_SHORT |
Placeholder. |
MACD_SIGNAL |
Placeholder. |
PP_BUY |
Placeholder. |
PP_SELL |
Placeholder. |
RENKO_ATR |
Placeholder. |
RENKO_BRICK_SIZE |
Placeholder. |
RENKO_PERIOD |
Placeholder. |
SELLLVL1 |
Placeholder. |
SELLLVL2 |
Placeholder. |
SELLLVL3 |
Placeholder. |
SELLLVL |
Placeholder. |
SENKOUSPAN_PERIOD |
Placeholder. |
SLOW_SMA |
Placeholder. |
TAKE_BUY |
Placeholder. |
TBUY_RANGE |
Placeholder. |
TENKAN_BUY |
Placeholder. |
TENKAN_CLOSE |
Placeholder. |
TENKAN_PERIOD |
Placeholder. |
TENKAN_SELL |
Placeholder. |
TENKAN_STOP |
Placeholder. |
TP_PROFIT_ONLY |
Placeholder. |
TP_RANGE |
Placeholder. |
TSSL_TARGET_ONLY |
Placeholder. |
USE_RENKO |
Placeholder. |
Gunbot: we aim to build the perfect money machine
- Início Rápido
- Windows - instalação
- Macos - instalação
- Linux - instalação
- ARM - instalação
- Configurando o Gunbot
- Usando a Gunthy GUI
- Gerenciamento de APIs
- ADX
- ATRTS
- Bollinger Bands
- Bollinger Bands (TA)
- EMAspread
- Emotionless
- Gain
- Ichimoku
- MACD
- MACDH
- PingPong
- StepGain
- SMAcross
- Trailing stop - stop limit
- Time series analysis
- Configurações de Saldo
- Indicadores de confirmação
- Dollar cost avg (DCA)
- Reversal Trading
- Trailme
- Misc settings
-
Add-ons