Misc settings

Last updated 18 minutes ago

Miscellaneous settings parameters

These strategy settings allow you to control your stop limit and other uncategorized features.

Stop Limit

Description
Values
Order types
Name

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.

When in a short margin position with a stop set to 60 and an entry at 100, the stop would hit when price reaches 160.

Values: numerical – represents a percentage.

Default value: 60

Affects

Does not affect

Stop limit

Strategy buy

RT buy

RT buyback

RT sell

Close

DCA buy

Strategy sell

Parameter name in config.js: STOP_LIMIT

SL Disable Buy

Description
Values
Order types
Name

When set to true, buy orders will be disabled after a pair hits STOP_LIMIT.

For margin trading, the pair will be disabled after a stop limit is hit.

Values: true or false

Default value: true

Affects

Does not affect

Stop limit

Strategy buy

RT buy

RT buyback

RT sell

Close

DCA buy

Strategy sell

Parameter name in config.js: SL_DISABLE_BUY

Panic Sell

Description
Values
Order types
Name

When set to true, all quote 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.

For margin trading, this setting will delete any open orders and close any position as soon as possible. Pairs are not automatically disabled afterwards.

Values: true or false

Default value: false

Affects

Does not affect

Stop limit

Strategy buy

RT buy

RT buyback

RT sell

Close

DCA buy

Strategy sell

Parameter name in config.js: PANIC_SELL

Trades Timeout

Description
Values
Order types
Name

Sets a timeout between two trades for a single pair, in this time no trades will be placed. Affects all trade types except stop limit orders.

Values: numerical - represents time in seconds.

Default value: 0

Affects

Does not affect

Strategy buy

Stop limit

RT buy

RT buyback

RT sell

Close

DCA buy

Strategy sell

Parameter name in config.js: PANIC_SELL

Count Sell

Description
Values
Order types
Name

Sets a maximum number of sell orders before automatically disabling a pair.

Setting this to 5 disables the pair after 5 strategy sell orders took place (not including RT). No further trades will happen until you re-enable the pair. The COUNT_SELL counter gets reset after a pair is re-enabled.

This parameter is irrelevant for trading at Bitmex.

Values: numerical – represents a number of strategy sell orders.

Default value: 9999

Affects

Does not affect

Strategy sell

Strategy buy

RT buy

RT buyback

RT sell

Close

DCA buy

Stop limit

Parameter name in config.js: COUNT_SELL

Maker Fees

Description
Values
Order types
Name

Bitmex: When set to true, limit orders will placed as post only orders. If the order can be (partially) filled immediately, it will get cancelled by Bitmex. Using PRE_ORDER you can configure how far from bid/ask the order gets placed.

Other exchanges: When set to true, limit buy orders are placed at bid, limit sell orders are placed at ask. This increases the likelyhood that the trade is executed with maker fees.

Values: true or false

Default value: false

Affects

Does not affect

Strategy buy

Stop limit

RT buy

RT buyback

RT sell

Close

DCA buy

Strategy sell

Parameter name in config.js: MAKER_FEES

Ignore Trades Before

Description
Values
Name

Optional parameter to force Gunbot to not consider any trades before the set timestamp.

Only ever use this when you know exactly what you are accomplishing, 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 to unix timestamps, make sure to use the timestamp in milliseconds.

Values: unix timestamp in milliseconds

Default value: 0

Parameter name in config.js: IGNORE_TRADES_BEFORE

Order type settings

On exchanges that support market orders, you can select which types of orders should be sent as limit or market.

Supported exchanges

Binance, Bitfinex, Bitmex, Coinbase Pro, Kraken and Poloniex

Market Buy

Description
Values
Order types
Name

When set to true, strategy buy/long orders will be placed as market order.

Values: true or false

Default value: false

Affects

Does not affect

Strategy buy

Stop limit

RT buy

RT buyback

RT sell

Close

DCA buy

Strategy sell

Parameter name in config.js: MARKET_BUY

Market Sell

Description
Values
Order types
Name

When set to true, strategy sell/short orders will be placed as market order.

Values: true or false

Default value: false

Affects

Does not affect

Strategy sell

Stop limit

RT buy

RT buyback

RT sell

Close

DCA buy

Strategy buy

Parameter name in config.js: MARKET_SELL

Market RT Buy

Description
Values
Order types
Name

When set to true, RT_BUY orders will be placed as market order.

Values: true or false

Default value: false

Affects

Does not affect

RT buy

Stop limit

Strategy sell

RT buyback

RT sell

Close

DCA buy

Strategy buy

Parameter name in config.js: MARKET_RTBUY

Market RT Sell

Description
Values
Order types
Name

When set to true, RT_SELL orders will be placed as market order.

Values: true or false

Default value: false

Affects

Does not affect

RT sell

Stop limit

Strategy sell

RT buyback

RT buy

Close

DCA buy

Strategy buy

Parameter name in config.js: MARKET_RTBUY

Market Buyback

Description
Values
Order types
Name

When set to true, RT Buyback orders will be placed as market order.

Values: true or false

Default value: false

Affects

Does not affect

RT buyback

Stop limit

Strategy sell

RT sell

RT buy

Close

DCA buy

Strategy buy

Parameter name in config.js: MARKET_BUYBACK

Market DU

Description
Values
Order types
Name

When set to true, DU orders will be placed as market order.

Values: true or false

Default value: false

Affects

Does not affect

DCA buy

Stop limit

Strategy sell

RT sell

RT buy

Close

RT buyback

Strategy buy

Parameter name in config.js: MARKET_DU

Market Close

Description
Values
Order types
Name

When set to true, position close orders at Bitmex will be placed as market order.

Values: true or false

Default value: false

Affects

Does not affect

Close

Stop limit

Strategy sell

RT sell

RT buy

DCA buy

RT buyback

Strategy buy

Parameter name in config.js: MARKET_CLOSE

Market Stop

Description
Values
Order types
Name

When set to true, position stop orders at Bitmex will be placed as market order.

Values: true or false

Default value: false

Affects

Does not affect

Stop limit

Close

Strategy sell

RT sell

RT buy

DCA buy

RT buyback

Strategy buy

Parameter name in config.js: MARKET_STOP

Market FOK

Description
Values
Name

When set to true, FOK orders will be placed as market order. This refers to orders placed within CANCEL_ORDERS_CYCLE_CAP.

Values: true or false

Default value: false

Parameter name in config.js: MARKET_FOK