Gunbot wiki
Wiki em português
English
English
  • Welcome to the Gunbot wiki
  • About
    • What's new?
      • New in v22
      • New in v20
      • New in v18
      • New in v16.7+
      • New in v16
      • New in v15
      • New in v13 / v14
      • New in v12
      • New in v11
      • New in v10
      • New in v9
      • New in v8
      • New in v7
      • New in v6
    • Supported exchanges
      • Creating API keys
      • Websockets support
    • License info & system specs
      • How to create a wallet
    • Purchasing Gunbot
  • Setup & general settings
    • Installation & startup
      • Quickstart guide
      • Download software
      • Windows installation
      • macOS installation
      • Linux installation
      • ARM installation
      • How to enable SSL/TLS
      • Running multiple instances
      • Headless mode
    • Global settings
      • Import settings
      • Bot settings
      • Cancel orders
      • Advanced
    • Profile settings
      • Exchanges
      • Gunthy wallet
      • Edit license
      • GUI authentication
      • Telegram
      • Tournament
  • How to work with Gunbot
    • Learning the basics
      • Trading logic
      • Important settings
      • Order types
      • Period
      • Trailing
      • ROE trailing
    • Strategies & pairs
      • Easy edit
      • Strategy editor
      • Trading pairs
        • Pair processing
    • Chart & results
    • Extra modules
      • AutoConfig
      • Backtesting
      • Code editor
      • TradingView Alerts
        • IMAP listener
      • Alerts (beta)
  • Trading strategy options
    • About Gunbot strategies
      • Trading methods
      • Protections
    • Regular strategies (spot trading)
      • ADX
      • ATRTS
      • Bollinger Bands
      • Bollinger Bands (TA)
      • EMA spread
      • Emotionless
      • Gain
      • Ichimoku
      • MACD
      • MACDH
      • Pingpong
      • Stepgain
      • Spotgrid
      • Spotgrid Advanced
      • StepGrid
      • SMA cross
      • Support / Resistance
      • Tssl (trailing stop / stop limit)
      • Time series analysis
    • Margin trading strategies
      • ADX
      • ATRTS
      • Bollinger Bands
      • Bollinger Bands (TA)
      • EMA spread
      • Futures Grid
      • Gain
      • Ichimoku
      • MACD
      • MACDH
      • Pingpong
      • Stepgain
      • SMA cross
      • Tenkan
      • Tssl (trailing stop / stop limit)
      • Time series analysis
    • Custom strategies
    • Balance settings
    • Confirming indicators
    • Dollar Cost Avg (DCA)
    • Reversal trading (RT)
    • TrailMe
    • Misc settings
  • More
    • Config marketplace
  • Various
    • Backups
    • Logs
    • Handling bags
    • Acronyms
  • Troubleshooting
    • Critical errors
    • Bot does not trade
    • Reset password
Powered by GitBook
On this page
  • Balance settings parameters
  • Trading Limit
  • Trading Limit Percentage
  • Trading Limit All-In
  • Keep Quote
  • Funds Reserve
  • Min Volume To Buy
  • Min Volume To Sell

Was this helpful?

  1. Trading strategy options

Balance settings

Options that define how much Gunbot is allowed to spend.

Balance settings define important options like how much Gunbot is allowed to invest per trade.

These settings are part of a trading strategy, this way you have the flexibility to run different strategies with different balance settings.

Balance settings parameters

Trading Limit

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 USD-x, set a whole number like 100 as trading limit.

Margin: enter the desired number of contracts.

Values: numerical – represents an amount in base currency.

Default value: 0.002

Affects

Does not affect

Strategy buy

Strategy sell

RT buy

RT buyback

RT sell

Close

DCA buy

Stop limit

Parameter name in config.js: TRADING_LIMIT

Trading Limit Percentage

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.

This parameter is irrelevant for margin trading.

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

Default value: 0

Affects

Does not affect

Strategy buy

Strategy sell

RT buy

RT buyback

RT sell

Close

DCA buy

Stop limit

Parameter name in config.js: TL_PERC

Trading Limit All-In

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

Values: true or false

Default value: false

Affects

Does not affect

Strategy buy

Strategy sell

RT buy

RT buyback

RT sell

Close

DCA buy

Stop limit

Parameter name in config.js: TL_ALLIN

Keep Quote

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.

This parameter is irrelevant for margin trading.

Values: numerical - represents an amount in quote currency.

Default value: 0

Parameter name in config.js: KEEP_QUOTE

Funds Reserve

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.

This parameter is irrelevant for margin trading.

Values: numerical – represents an amount in base currency.

Default value: 0.0001

Parameter name in config.js: FUNDS_RESERVE

Min Volume To Buy

Sets a threshold for buy orders. Prevents orders below the exchange minimum trade size from being placed.

Set this at least to the minimum trade size of your exchange.

When trading a fiat pair like USD-x, set a whole number like 10 as MIN_VOLUME_TO_BUY.

This parameter is irrelevant for trading at Bitmex.

Values: numerical, represents volume in base currency

Default value: 0.001

Affects

Does not affect

Strategy buy

Strategy sell

DCA buy

RT sell

RT buy

RT buyback

RT buyback

Close

Stop limit

Parameter name in config.js: MIN_VOLUME_TO_BUY

Min Volume To Sell

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.

This parameter is irrelevant for trading at Bitmex.

Values: numerical, represents volume in base currency

Default value: 0.001

Affects

Does not affect

Strategy sell

Strategy buy

Stop limit

RT buy

RT sell

RT buyback

Close

DCA buy

Parameter name in config.js: MIN_VOLUME_TO_SELL

PreviousCustom strategiesNextConfirming indicators

Last updated 5 years ago

Was this helpful?