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
  • Settings descriptions
  • Cancel orders enabled
  • Cancel orders cycle cap
  • Cancel orders oncap

Was this helpful?

  1. Setup & general settings
  2. Global settings

Cancel orders

Info about settings that control how Gunbot handles cancelling open orders.

PreviousBot settingsNextAdvanced

Last updated 4 years ago

Was this helpful?

Settings for cancelling orders are global, they affect all trading pairs.

To change them, go to > Cancel orders

The default behavior is to cancel open orders when prices move away from the order rate, to give the bot another chance to place an order at a rate that is more likely to fill.

If you find it is too sensitive and cancels orders faster than you'd like to see, consider using the "oncap" option, which is more or less time based.

Settings descriptions

Below you'll find detailed descriptions for cancel orders settings.

Cancel orders enabled

When set to true, the bot will cancel unfilled or partially filled orders when the price has moved away from the buy or sell price.

Set this to false if you also trade manually to prevent the bot from cancelling your open orders.

Simulated Fill Or Kill (FOK)

When an order is not or only partially filled and gets cancelled, Gunbot will attempt to fill the order by replacing it at current bid/ask.

For buy orders this means that FOK orders are sent as long as the number of quote units held are worth less than TRADING_LIMIT and the difference is higher than MIN_VOLUME_TO_BUY.

For sell orders this means that FOK orders are sent as long as the number of quote units held (minus KEEP_QUOTE, if used) are worth more than MIN_VOLUME_TO_SELL and bid is higher than the break-even point.

Values: true or false

Default value: false

Parameter name in config.js: CANCEL_ORDERS_ENABLED

Cancel orders cycle cap

This only applies when using MAKER_FEES or CANCEL_ONCAP.

Set the number of rounds that pending orders need to be kept open. After this number of rounds passes, Gunbot will cancel the pending order.

Values: numerical - represents a number of rounds.

Default value: 10

Parameter name in config.js: CANCEL_ORDERS_CYCLE_CAP

Cancel orders oncap

Enabling this changes the behavior of cancelling orders: orders are cancelled after CANCEL_ORDERS_CYCLE_CAP passes.

Values: true or false

Default value: false

Parameter name in config.js: CANCEL_ONCAP

Global settings