Skip to main content

Misc Settings

These strategy settings control your stop limit, order type per trigger, and other uncategorized features.

Stop Loss settings

LabelConfig ParameterDefault ValueDetailed Description
Stop limitSTOP_LIMIT99Sets the threshold for activating a stop loss at a specified percentage or ROE below the break-even point. The value represents a Return on Equity (ROE) below break-even.
SL disable buySL_DISABLE_BUYfalsePrevents new buy orders once the stop limit is reached, helping to avoid further losses in a declining market.

Miscellaneous settings

LabelConfig ParameterDefault ValueDetailed Description
Market buyMARKET_BUYfalseWhen enabled, places buy orders as market orders instead of limit orders. This ensures immediate execution but may involve higher costs due to slippage.
Market sellMARKET_SELLfalseSets sell orders to execute as market orders, guaranteeing immediate execution at the current market price but reducing price control.
Market stopMARKET_STOPfalseConfigures stop orders to be placed as market orders. This is useful for strategies that require rapid execution during fast market movements.
Market RTbuyMARKET_RTBUYfalseAllows RT Buy orders to be executed as market orders. This ensures quick entry but may result in purchasing at a higher than expected price.
Market RTsellMARKET_RTSELLfalseEnables RT Sell orders to be market orders, supporting swift exits during volatile market conditions.
Market buybackMARKET_BUYBACKfalseWhen activated, RT buyback orders are executed as market orders, ensuring immediate re-entry after a sell.
Market DUMARKET_DUfalsePlaces Double Up orders as market orders, which can be crucial for strategies that need to average down positions quickly during market dips.
Market fokMARKET_FOKfalseEnables Fill or Kill (FOK) orders to be placed as market orders. These must be filled immediately in their entirety or not at all, providing stricter execution conditions.
Panic sellPANIC_SELLfalseSells all quote units at the market price immediately for fast liquidation in emergencies.

It may result in losses but provides a rapid exit during sudden downturns.
Trades timeoutTRADES_TIMEOUT0Sets a timeout period in seconds during which no new orders will be placed. Useful for pausing trading during high volatility or uncertainty without disabling pairs.
Ignore trades beforeIGNORE_TRADES_BEFORE0Allows the system to ignore all trades before a specified timestamp, resetting strategies without considering past performance.

Values should be in unix timestamp format in milliseconds.
Bought priceBOUGHT_PRICEValuesAllows manual specification of a reference price per unit that Gunbot should consider when selling an asset, especially when exchange data is missing or incomplete.

Should only be used when necessary, and can be overridden by using IGNORE_TRADES_BEFORE and deleting the pair's state JSON file.
Never buy aboveNBA0Restricts buy orders to execute only when the ask price is at least a specified percentage below the last sell rate. Setting it to 0 disables this feature.
Take profitTAKE_PROFITfalseEnables the Take Profit feature, allowing the system to lock in profits by selling when profit conditions are met.
TP profit onlyTP_PROFIT_ONLYfalseWhen Take Profit is enabled, this setting ensures that sales are only made when they result in a profit.
TP rangeTP_RANGE0.5Sets the range, in percentage, within which the Take Profit mechanism activates, defining the profit-taking threshold.
Take buyTAKE_BUYfalseEnables the Take Buy feature, which triggers buy orders based on predefined conditions aimed at capitalizing on expected price increases.
Take buy rangeTBUY_RANGE0.5Defines the percentage range for the Take Buy feature, setting the conditions under which buy orders are initiated.
Liquidity providerLIQUIDITYfalseActivates the liquidity provider strategy, which aims to generate a high volume of trades by providing liquidity on the spot market. Use this with an understanding of the associated risks and potential for a large number of transactions.
Liquidity taker roleLIQUIDITY_TAKERfalseEnables the taker side of the liquidity strategy, allowing the system to actively take liquidity from the market.
Liquidity gainLIQUIDITY_GAINtrueEnsures that sell orders placed under the liquidity provider strategy are profitable. If you turn this off, you allow for potential losses if it supports maintaining market liquidity.

Overview of effects on different order types

Config ParameterAffected Order TypesNot Affected Order Types
Stop LimitStop limitStrategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Strategy sell
SL Disable BuyStop limitStrategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Strategy sell
SL Disable SellStop limitStrategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Strategy sell
Panic SellStop limitStrategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Strategy sell
Trades TimeoutStrategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Strategy sellStop limit
Count SellStrategy sellStrategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit
Maker FeesStrategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Strategy sellStop limit
Ignore Trades BeforeStrategy sell, Stop limit, DCA buy, RT sellRT buy, RT buyback, Close, Strategy buy
Bought PriceStrategy sell, Stop limit, DCA buy, RT sellRT buy, RT buyback, Close, Strategy buy
Liquidity MakerStrategy buy, Strategy sellStop limit, RT Buy, RT buyback, RT sell, Close, DCA buy
Liquidity TakerStrategy buy, Strategy sellStop limit, RT Buy, RT buyback, RT sell, Close, DCA buy
Liquidity GainStrategy sellStrategy buy, Stop limit, RT Buy, RT buyback, RT sell, Close, DCA buy
Max Invested BaseStrategy buy, Strategy sellStop limit, RT Buy, RT buyback, RT sell, Close, DCA buy
Market BuyStrategy buyStop limit, RT buy, RT buyback, RT sell, Close, DCA buy, Strategy sell
Market SellStrategy sell, Stop limitRT buy, RT buyback, RT sell, Close, DCA buy, Strategy buy
Market RT BuyRT buyStop limit, Strategy sell, RT buyback, RT sell, Close, DCA buy, Strategy buy
Market RT SellRT sellStop limit, Strategy sell, RT buyback, RT buy, Close, DCA buy, Strategy buy
Market BuybackRT buybackStop limit, Strategy sell, RT sell, RT buy, Close, DCA buy, Strategy buy
Market DUDCA buyStop limit, Strategy sell, RT sell, RT buy, Close, RT buyback, Strategy buy
Market CloseCloseStop limit, Strategy sell, RT sell, RT buy, DCA buy, RT buyback, Strategy buy
Market StopStop limitClose, Strategy sell, RT sell, RT buy, DCA buy, RT buyback, Strategy buy
Market FOKFOK orders within CANCEL_ORDERS_CYCLE_CAPStop limit, Close, Strategy sell, RT sell, RT buy, DCA buy, RT buyback, Strategy buy
Take BuyStrategy buyStrategy sell, Stop limit, Close, RT sell, DCA buy, RT buy, RT buyback
TBuy RangeStrategy buyStrategy sell, Stop limit, Close, RT sell, DCA buy, RT buy, RT buyback
Take ProfitStrategy sellStrategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit
TP RangeStrategy sellStrategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit
TP Profit OnlyStrategy sellStrategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit