PingPong

boekenbox edited this page Sep 27, 2018 · 39 revisions

Pingpong

This strategy can be used for pairs that move up and down between a predictable price range for longer periods. You set fixed prices at which Gunbot should buy and sell, Gunbot will buy or sell as soon as the exact target is hit or exceeded.

To refine this strategy, other indicators are available to be used as confirmation for both buying and selling. For example you could have Gunbot buy at a specific price only when RSI is 30 or lower.

This strategy can be also used to trade purely on signals from confirming indicators, by setting unrealistic buy and sell prices.

Warning: This strategy has no GAIN protection. Be aware that this can lead to sell orders below your break-even point.

Pingpong tuner (thanks @allanster!)

Contents:

  1. Strategy parameters
  2. Buy settings
  3. Sell settings
  4. Balance settings
  5. Indicator settings
  6. Dollar cost avg settings
  7. Reversal trading settings
  8. TrailMe settings
  9. Misc settings

Strategy parameters

Following settings options are available for pp 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 pp. Accepted values are all strategy names as listed here (case sensitive).

Buy settings

Buy settings are the primary trigger for buy orders. These parameters control the execution of buy orders when using pp as buy method.

Parameter Default value Description
PP_BUY
0 Values: numerical – represents a price in base currency.


This sets the exact target price for placing a buy order. A buy order will be placed as soon as this price is hit or an even better price is available.

For example: when trading a BTC-x pair with PP_BUY set to 0.00123456, a buy order will be placed in the first cycle where the price reaches 0.00123456 or lower.

BUY_ENABLED
true Values: true or false.


Set this to false to prevent Gunbot from placing buy orders. Affects all types of buy orders.

These settings have no function for buying with pp and act as placeholders. Do not remove them.

Parameter Description
BUY_LEVEL Placeholder.
BUYLVL1 Placeholder.
BUYLVL2 Placeholder.
BUYLVL3 Placeholder.
BUYLVL Placeholder.
BUY_RANGE Placeholder.
TAKE_BUY Placeholder.
TBUY_RANGE Placeholder.

Sell settings

Sell settings are the primary trigger for sell orders. These parameters control the execution of sell orders when using pp as sell method.

Parameter Default value Description
PP_SELL
99999 Values: numerical – represents a price in base currency.


This sets the exact target price for placing a sell order. A sell order will be placed as soon as this price is hit or an even better price is available.

For example: when trading a BTC-x pair with PP_SELL set to 0.00123456, a buy order will be placed in the first cycle where the price reaches 0.00123456 or lower.

SELL_ENABLED
true Values: true or false.


Set this to false to prevent Gunbot from placing sell orders. Affects all types of sell orders.

These settings have no function for selling with pp and act as placeholders. Do not remove them.

Parameter Description
SELLLVL1 Placeholder.
SELLLVL2 Placeholder.
SELLLVL3 Placeholder.
SELLLVL Placeholder.
SELL_RANGE Placeholder.
TSSL_TARGET_ONLY Placeholder.
GAIN Placeholder.
TAKE_PROFIT Placeholder.
TP_RANGE Placeholder.
TP_PROFIT_ONLY Placeholder.

Balance settings

Configure balance related settings for your strategy.

Parameter Default value Description
TRADING_LIMIT
0.002 Values: numerical – represents an amount in base currency.


This value defines the trading limit for each buy order. Make sure to always set this higher than MIN_VOLUME_TO_BUY & MIN_VOLUME_TO_SELL.

When you set this to 0.1 and trade BTC-x pairs, Gunbot will place a buy order worth 0.1 BTC each time it buys. When trading a fiat pair like USDT-x, set a whole number like 100 as TRADING_LIMIT.

TL_PERC
0 Values: numerical – represent a percentage of available base currency.


Alternative method for setting the investment per buy order as a percentage of the available base currency at the time the trade takes place.

Any value above 0 makes Gunbot ignore TRADING_LIMIT and uses the set percentage instead. For example: when set to 10, trading BTC-ALT and you have 1 BTC available at the time Gunbot places a buy order, an order of 0.1 BTC is placed.

TL_ALLIN
false Values: true or false.


Alternative method for setting the investment per buy order to use all available base currency at the time the trade takes place.

TRADING_FEES
0.25 Values: numerical - represents a percentage.


This sets the trading fees paid to the exchange. Gunbot uses this data to calculate the break-even point.

Does your exchange charge 0.25% fees per trade? Then set this to 0.25. When your exchange has different fees for different types of trades, set the average fees per trade.

Trading fees are reflected in the average bought price. Exchanges only calculate fees after the trade comes in, Gunbot needs to know about fees before the trade is sent to the exchange.

FUNDS_RESERVE
0.0001 Values: numerical – represents an amount in base currency.


Sets an amount of base currency that will not be traded. For a BTC-x pair, funds in BTC would be reserved according to this setting. For ETH- pairs ETH would be reserved, etc. It is recommended to use the same value for all pairs of the same base currency you run.

For example: when FUNDS_RESERVE is set to 0.5 for trading BTC-x pairs then 0.5 BTC will not be used by Gunbot.

KEEP_QUOTE
0 Values: numerical – represents an amount in quote currency.


Sets an amount of quote currency that will not be sold. For a BTC-ALT pair, a set amount of ALT will not be sold.

For example: when KEEP_QUOTE is set to 10 for trading BTC-BNB, then Gunbot will leave 10 BNB in your account when placing a sell order, any balance above 10 will get sold as long as it is worth more than MIN_VOLUME_TO_SELL.

To make sure trading continues after a sell order where an amount of quote is kept, make sure to set MIN_VOLUME_TO_SELL at least higher than the assumed value of the kept quote (expressed in base currency). When you do not do this, and set MIN_VOLUME_TO_SELL lower than the value of quote kept, Gunbot will attempt to sell again after the initial sell order (as balance is higher than MIN_VOLUME_TO_SELL) - which won't succeed since you only own the amount specified in KEEP_QUOTE.

Indicator settings

Relevant indicators for trading with pp

As pp is purely price based, there are no indicators that directly influence trading with pp.

Confirming indicators + advanced indicator settings

Settings to configure additional indicators as confirmation for buying or selling. These do not apply to reversal trading, for double up orders only the selected indicator for DU_METHOD applies.

Orders are placed when both the main strategy settings and confirming indicators meet the market situation. When TrailMe is used too, it must finish trailing while other conditions meet. All these conditions must occur in the same cycle.

Especially when TrailMe is used together with confirming indicators, it makes sense to not set the indicators too strict as all order criteria must happen in the same cycle for an order to be placed (strategy conditions + indicator conditions + hitting trailing stop).

Indicators in Gunbot are calculated with live data. For example for a 14 period RSI calculation, that means that the period close values for the past 13 completed candles are used, plus the live data for the current cycle.

Parameter Default value Description
PERIOD
15 Values: numerical– represents candlestick size in minutes.


This sets the candlestick period used for trading, this affects all indicators within the strategy and the BUY_LEVEL. 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.

RSI_BUY_ENABLED
false Values: true or false.


Setting this to true will make sure Gunbot only buys when both strategy buying conditions and RSI_BUY_LEVEL are met.

RSI_SELL_ENABLED
false Values: true or false.


Setting this to true will make sure Gunbot only sells when both strategy selling conditions and RSI_SELL_LEVEL are met.

RSI_METHOD
oscillator Values: oscillator or cross.


Sets the method for using RSI. See RSI_BUY_LEVEL and RSI_SELL_LEVEL for detailed describtions of both methods.

RSI_BUY_LEVEL
30 Values: numerical, ranging between 1 and 99.


Set this to the RSI level you want to allow buy orders at.

RSI_METHOD = oscillator: when set to 40, buy orders will only be placed when RSI is 40 or lower.

RSI_METHOD = cross: when set to 40, buy orders will only be placed when RSI crosses over 40.

RSI_SELL_LEVEL
70 Values: numerical, ranging between 1 and 99.


Set this to the RSI level you want to allow sell orders at.

RSI_METHOD = oscillator: when set to 60, sell orders will only be placed when RSI is 60 or higher.

RSI_METHOD = cross: when set to 60, sell orders will only be placed when RSI crosses under 60.

RSI_LENGTH
14 Values: numerical, represents a number of candlestick periods.


Set this to the number of candlestick periods you want to use for calculating RSI.

STOCH_ENABLED
false Values: true or false.


Setting this to true will make sure Gunbot only trades when both strategy trade conditions and STOCH_BUY_LEVEL/STOCH_SELL_LEVEL are met.

STOCH_METHOD
oscillator Values: oscillator or cross.


Sets the method for using Stochastic. See STOCH_BUY_LEVEL and STOCH_SELL_LEVEL for detailed describtions of both methods.

STOCH_BUY_LEVEL
20 Values: numerical, ranging between 1 and 99.


Set this to the maximum Stochastic level you want to allow buy orders at.

When set to 30, buy orders will only be placed when Stochastic is between 0 and 30.

STOCH_METHOD = oscillator: a buy signal occurs when both Stoch %K and %D are below the set buy level.

STOCH_METHOD = cross: a buy signal occurs when both Stoch %K and %D are below the set buy level, additionally %K must cross over %D.

STOCH_SELL_LEVEL
80 Values: numerical, ranging between 1 and 99.


Set this to the minimum Stochastic level you want to allow sell orders at.

When set to 70, sell orders will only be placed when Stochastic is between 70 and 100.

STOCH_METHOD = oscillator: a sell signal occurs when both Stoch %K and %D are above the set sell level.

STOCH_METHOD = cross: a sell signal occurs when both Stoch %K and %D are above the set sell level, additionally %K must cross down %D.

STOCH_K
14 Values: numerical, represents a number of periods.


The number of periods used for calculating Stochastic %K.

SLOW_STOCH_K
3 Values: numerical, represents a number of periods.


The number of periods used for calculating Slow Stochastic %K.

STOCH_D
3 Values: numerical, represents a number of periods.


The number of periods used for calculating Stochastic %D.

STOCHRSI_ENABLED
false Values: true or false.


Setting this to true will make sure Gunbot only trades when both strategy trade conditions and STOCHRSI_BUY_LEVEL/STOCHRSI_SELL_LEVEL are met.

STOCHRSI_METHOD
oscillator Values: oscillator or cross.


Sets the method for using StochRSI. See STOCHRSI_BUY_LEVEL and STOCHRSI_SELL_LEVEL for detailed describtions of both methods.

STOCHRSI_BUY_LEVEL
0.2 Values: numerical, ranging between 0 and 1.


Set this to the StochRSI level you want to allow buy orders at.

STOCHRSI_METHOD = oscillator: when set to 0.2, buy orders will only be placed when StochRSI is 0.2 or lower.

STOCHRSI_METHOD = cross: when set to 0.2, buy orders will only be placed when StochRSI crosses over 0.2.

STOCHRSI_SELL_LEVEL
0.8 Values: numerical, ranging between 0 and 1.


Set this to the StochRSI level you want to allow sell orders at.

RSI_METHOD = oscillator: when set to 0.8, sell orders will only be placed when StochRSI is 0.8 or higher.

RSI_METHOD = cross: when set to 0.8, sell orders will only be placed when StochRSI crosses under 0.8.

STOCHRSI_LENGTH
14 Values: numerical, represents a number of candlestick periods.


Set this to the number of candlestick periods you want to use for calculating StochRSI.

MFI_ENABLED
false Values: true or false.


Setting this to true will make sure Gunbot only sells when both strategy selling conditions and MFI_BUY_LEVEL/MFI_SELL_LEVEL are met.

MFI_BUY_LEVEL
30 Values: numerical, ranging between 1 and 99.


Defines the maximum MFI level you want to allow buy orders at.

When set to 30, buy orders will only be placed when MFI is between 0 and 30.

MFI_SELL_LEVEL
70 Values: numerical, ranging between 1 and 99.


Set this to the minimum MFI level you want to allow sell orders at.

For example: when set to 70, sell orders will only be placed when MFI is between 70 and 100.

MFI_LENGTH
14 Values: numerical, represents a number of candlestick periods.


Set this to the number of candlestick periods you want to use for calculating MFI.

MFI is calculated using an array of the period close prices of MFI_LENGTH-1 candles and the last price.

ADX_ENABLED
false Values: true or false.


Setting this to true will enable ADX as a confirming indicator, only allowing trades when the trend strong enough to meet or exceeds the set ADX_LEVEL.

ADX measures both up- and downtrends, when DI + is lower than DI - prices are moving up (these values are visible in the logs). When DI - is lower than DI +, prices are moving down. The ADX value indicates the strength of the current up- or downtrend.

ADX_LEVEL
25 Values: numerical, ranging between 1 and 99.


Sets the minimum trend level that needs to be reached for orders to be allowed. This affects both buy and sell orders.

When set to 25, trades will only be placed when ADX is between 25 and 100.

DI_PERIOD
14 Values: numerical, ranging between 1 and 99.


Sets the number of candles used to calculate ADX.

EMASPREAD
false Values: true or false.


Setting this to true will enable EMASPREAD as a confirming indicator for both buy and sell orders. The spread is calculated each cycle by subtracting the lowest EMA value from the highest EMA.

A buy signal occurs when EMA1 (slow EMA) is at least EMAx higher than EMA2 (fast EMA) and the EMASPREAD value starts to decrease (after having increased first). A sell signal occurs when EMA1 (slow EMA) is at least EMAx lower than EMA2 (fast EMA) and the EMASPREAD value starts to increase (after having decreased first).

EMA1
16 Values: numerical – represents a number of candlesticks.


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).

EMA2
8 Values: numerical – represents a number of candlesticks.


Set this to the amount of candlesticks you want to use for your fast 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 fast EMA – you need to set EMA2 to 12 (12 * 5 mins).

EMAx
0.5 Values: numerical, represents a percentage.


Sets the minimum percentage difference between EMA1 and EMA2 for EMASPREAD.

When set to 1, the spread must reach at least 1% before EMASPREAD can trigger a buy or sell.

EMA_LENGTH
50 Values: numerical, represents a number of candlestick periods.


Set this to the number of candlestick periods you want be available for calculating EMA1 and EMA2.

BTC_PND_PROTECTION
true Values: true or false.

Setting this to true disables buy orders when there is too much price and volume pressure on BTC. This setting is dependent on BTC_MONEY_FLOW. Only use this if BTC pumps have a significant effect on your trading pair.

BTC_MONEY_FLOW
35 Values: numerical, ranging between 1 and 99.


Sets the value on the Money Flow Index (MFI) for BTC-USD that BTC_PND_PROTECTION disables orders for. As soon as MFI hits the set value or drops below it, BTC_PND_PROTECTION will be active.

The default value of 35 indicates that the BTC-USD market is moving into oversold territory and might start pumping soon, no buy orders would be placed while BTC-USD MFI is between 35 and 0. As long as BTC-USD is the defined oversold territory, no orders will be placed.

BTC_PND_PERIOD
14 Values: numerical, represents a number of candlestick periods.


Set this to the number of candlestick periods you want to use for calculating MFI for BTC_PND_PROTECTION.

CANDLES_LENGTH
99 Values: numerical, represents a number of candlestick periods.


Set this to the number of candlestick periods you want Gunbot to pull from the exchange, which are available for calculating other indicators. Always make sure that this setting is high enough for other indicators to be properly calculated. Please be aware that exchanges won't always provide the number of specified candles, often it is less.

SMAPERIOD
50 Values: numerical – represents a number of candlesticks.


This defines the number of periods used for calculating Bollinger Bands.

STDV
2 Values: numerical (recommended: between 1.9 and 2.1) - represents a multiplier value used in the bollinger bands calculation.


This value defines the multiplier used for calculating Bollinger Bands.

These indicator settings have no function for pp and act as placeholders. Do not remove them.

Parameter Description
HIGH_BB Placeholder.
LOW_BB Placeholder.
MACD_SHORT Placeholder.
MACD_LONG Placeholder.
MACD_SIGNAL Placeholder.
ATRX Placeholder.
ATR_PERIOD Placeholder.
KUMO_SENTIMENTS Placeholder.
TENKAN_PERIOD Placeholder.
KIJUN_PERIOD Placeholder.
SENKOUSPAN_PERIOD Placeholder.
SLOW_SMA Placeholder.
FAST_SMA Placeholder.

Dollar cost avg settings

Settings for using Double Up.

Parameter Default value Description
DOUBLE_UP
false Values: true or false.


When set to true, DOUBLE_UP will try to get rid of bags by averaging down. Works on all strategies. Averaging down can use up a lot of balance, make sure you have enough of your base currency available to cover each double up buy. Gunbot will start averaging down a bag according to your setting for DU_METHOD.

Averaging down means that you buy more units at a lower price, bringing down the average price per unit.

DU_METHOD
HIGHBB Values: HIGHBB or RSI.


This sets the trigger for placing buy orders with double up. When set to HIGHBB Gunbot will start averaging down a bag when the actual upper Bollinger Band drops below bought price (not the distance from it as set in HIGH_BB) and the current price is a percentage below last bought price, as set in DU_BUYDOWN.


When set to RSI, buy orders will only be placed when the set RSI_BUY_LEVEL is reached and the current price is a percentage below last bought price, as set in DU_BUYDOWN.

DOUBLE_UP_CAP
1 Values: numerical - represents a ratio.


This defines the ratio to the pairs balance to be used for each consecutive buy when doubling up. Setting it to 0.5 would mean it uses a 0.5:1 ratio for averaging down. It is recommended to set this as high as you can afford, to increase your chance to actually average down and sell at profit. Make sure that the resulting amount for the first double up order exceeds MIN_VOLUME_TO_SELL

Example with ratio of 1: initial buy of 100 LTC, first double up buy order is 100 LTC, second will be 200 LTC, then 400 LTC, etc. Example with 0.5 ratio: initial buy of 100 LTC, first double up buy order is 50 LTC, then 75 LTC, then 112.5 LTC.

DU_CAP_COUNT
0 Values: numerical - represents a number.


Sets the maximum number of times double up orders may be placed.

When set to 1, a maximum number of 1 double up orders will be placed to average down. When you set this higher, double up can place more orders and has a higher chance of effectively averaging down and come closer to a profitable exit point each time it places a double up order.

DU_BUYDOWN
2 Values: numerical, ranging between 1 and 99 - represents a percentage.


The minimum price drop compared to the last bought price that needs to occur for double up buys to be placed.

RSI_DU_BUY
30 Values: numerical, ranging between 1 and 99.


Use this to specify the maximum RSI level for buying when DU_METHOD is set to RSI.

Reversal trading settings

Relevant settings for reversal trading when using pp as buy or sell method.

Parameter Default value Description
RT_ENABLED
false Values: true or false.


When set to true and prices drop, reversal trading will try to use the assets originally invested in your bag to accumulate more units, which can be sold for profit earlier than the original bag. When double up is enabled, RT will start when DU_CAP_COUNT is reached.

RT_GAIN
1.5 Values: numerical - represents a percentage.


Defines the percentage drop after initial buy or RT_BUY to trigger an RT_SELL. Make sure to set this higher then the spread between bid and ask to prevent unwanted buybacks.

When set to 2 and the last buy had a price of 100, an RT_SELL occurs when price is 98 or lower. Reversal trading will then wait for prices to drop by RT_BUY_LEVEL and buy more units back.

When prices move upwards instead of downwards it can happen that the bag gets bought back at the break-even price.

RT_BUY_LEVEL
2 Values: numerical - represents a percentage.


This defines the percentage the price has to drop after RT_SELL to trigger RT_BUY.

When set to 2 and the last RT_SELL happened at a price of 100, an RT_BUY occurs when price is 98 or lower. Reversal trading will then wait to sell for profit, or for another RT_SELL when prices keep dropping.

RT_SELL_UP
0.3 Values: numerical - represents a percentage above the last buy price.


This sets the starting point for trailing up an RT_SELL. Only works when TM_RT_SELL is enabled.

When you set this to 1 and price increases 1% after an RT_BUY, sell trailing gets activated to place the next RT_SELL as high as possible. The sell range is configurable with TRAIL_ME_RT_SELL_RANGE.

Optionally, you can use RT_TREND_ENABLED to only proceed with RT_SELL_UP when forecast trend indicates a strong uptrend.

RT_TREND_ENABLED
false Values: true or false.


Enables the use of trend forecast for placing RT_BUY or RT_SELL orders when using TM_RT_SELL and/or TRAIL_ME_BUY.

The forecast trend indicator combines smacross, xtrend and the time series forecast to provide an indication of the strength of a trend. This can be used to only place RT_BUY or RT_SELL orders when there is respectively a strong down- or uptrend.

RT_ONCE
false Values: true or false


Set this to true to only allow one full RT cycle (until final profit sell), after that the pair is set to not cycle again.

At the end of the RT cycle, the pair enabled setting will be set to false.

RT_ONCE_AND_CONTINUE
false Values: true or false


Set this to true to only allow one full RT cycle (until final profit sell), after that RT will be disabled to continue normal trading.

At the end of the RT cycle, the RT_ENABLED setting will be set to false for the pair.

RT_MAXBAG_PROTECTION
10 Values: numerical - represents a percentage.


Sets the maximum difference between the average bought price and current price for starting RT. When the difference is bigger, RT orders won't be placed. This is used as a protection against starting reversal trading on bags that already dropped too much for the process to work effectively.

These reversal trading settings have no function for pp and act as placeholders. Do not remove them.

Parameter Description
RT_BUYLVL1 Placeholder.
RT_BUYLVL2 Placeholder.
RT_BUYLVL3 Placeholder.
RT_BUYLVL Placeholder.
RT_SELLLVL1 Placeholder.
RT_SELLLVL2 Placeholder.
RT_SELLLVL3 Placeholder.
RT_SELLLVL Placeholder.

TrailMe settings

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.

Orders resulting from trailing are only placed when the main strategy criteria are met, and confirming indicators (if any) allow the order. All these conditions must occur in the same cycle.

Parameter Default value Description
TRAIL_ME_BUY
false Values: true or false.


Use this to enable tssl-style trailing after the normal strategy buy criteria are met.

TRAIL_ME_SELL
false Values: true or false.


Use this to enable tssl-style trailing after the normal strategy sell criteria are met.

TRAIL_ME_DU
false Values: true or false.


Use this to enable tssl-style trailing for double up orders.

TRAIL_ME_RT
false Values: true or false.


Use this to enable tssl-style trailing for RT_BUY orders.

TM_RT_SELL
false Values: true or false.


Use this to enable tssl-style trailing for RT_SELL orders above the last RT_BUY rate.

TRAIL_ME_BUY_RANGE
0.5 Values: numerical – represent a percentage.


This sets the buy range for TrailMe. 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.

TRAIL_ME_SELL_RANGE
0.5 Values: numerical – represent a percentage.


This sets the sell range for TrailMe. Setting a range of 0.5% at a current 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.

TRAIL_ME_RT_SELL_RANGE
0.5 Values: numerical – represent a percentage.


This sets the sell range for TrailMe. Setting a range of 0.5% at a current 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.

Misc settings

Miscellaneous settings.

Parameter Default value Description
STOP_LIMIT
60 Values: numerical – represents a percentage.


Sets a stop limit to sell a coin at a calculated loss. After a stop limit sell order has been placed, the bot will go into buying mode after TRADES_TIMEOUT has passed and will buy again when market conditions meet your buying strategy.

Setting a stop limit at 60 would make sure that all holdings for a coin are sold when 60% value is lost, compared to the averaged bought price. E.g. average bought price is 100, stop limit is executed at 40 and all assets are sold.

PANIC_SELL
false Values: true or false.


When set to true, all coins will be sold at market value as soon as possible. This may incur losses!

You should only enable this when you want to sell your current holdings immediately.

TRADES_TIMEOUT
0 Values: numerical – represent time in seconds.


This sets a timeout preventing any trades being placed for a pair after the last order. TRADES_TIMEOUT is also in effect after starting the bot. This setting affects both buy and sell orders. While the timeout is active trades will not be placed and you will see Waiting to Trade - Safety Switch is on in the logs.

It is generally safe to maintain a timeout of 0 seconds, however you could increase the timeout when you want to force more time in between orders.

MIN_VOLUME_TO_BUY
0.001 Values: numerical – represents the total value of a coins holdings in base currency.


Sets a threshold for buy orders. Prevents orders from being placed when TRADING_LIMIT is lower than this value. Set this at least to the minimum trade size of your exchange. When trading a fiat pair like USDT-x, set a whole number like 10 as MIN_VOLUME_TO_BUY.

MIN_VOLUME_TO_SELL
0.001 Values: numerical – represents the total value of a coins holdings in base currency.


Sets a threshold for sell orders lower than the exchange minimum trade size. If you own less than the set amount, sell orders will not be placed and Gunbot goes into buying mode. Set this at least to the minimum trade size of your exchange.When trading a fiat pair like USDT-x, set a whole number like 10 as MIN_VOLUME_TO_SELL.

When you hold 0.006 (in base currency) of a coin and have set MIN_VOLUME_TO_SELL to 0.01, Gunbot will not try to sell your current 0.006 balance because it is below the set threshold of 0.01, instead it will place another buy order first as soon as buying are met.

IGNORE_TRADES_BEFORE
0 Values: unix timestamp in milliseconds (in GMT)


Optional parameter to force Gunbot to not consider any trades before the set timestamp. Only ever use this when you know what you are doing, and for example want to prevent RT from being started on a pair where the last sell order resulted in a loss.

Use https://currentmillis.com/ to convert human readable time in GMT to unix timestamps, make sure to use the timestamp in milliseconds.

BOUGHT_PRICE
none Values: numerical – represent a price in base currency.


Only to be used as an override for pairs. Use this to manually enter the last (or average) bought price when Gunbot can no longer retrieve it from the exchange, remove the override after a sell occured. Usually Gunbot will notify you in its logs when it could not retrieve a bought price and you need to override it.

There can be several reasons for the need to override: you deposited coins, you bought coins in a different base currency than you are currently trading, or previous buy orders happened so long ago that the exchange does not provide the order information anymore. Many exchanges don't provide order information on trades more than 30 days ago.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.