About Gunbot strategies

boekenbox edited this page Sep 23, 2018 · 13 revisions

About Gunbot strategies

A strategy in Gunbot is a collection of settings that can be assigned to one or more trading pairs. These pairs will then trade according to the assigned settings. The most important factors of a strategy are the buy and sell methods, these define the logic for buy and sell orders.

Gunbot has 15 different methods for executing buy and sell orders. These can be freely combined, where one method is being used for buying and another for selling.

Each method has it's own wiki article describing the exact logic and explaining all available strategy parameters.


  1. Trading methods
  2. Protections
  3. Using overrides
  4. Strategy naming

Trading methods

Method names are case sensitive.

Method Description (short)
ADX Average Directional Index: uses the ADX indicator to trade only when trends are strong enough.
ATRTS Average True Range Trailing Stop: uses the ATR indicator to measure volatility changes and trade on a trailing stop.
bb Bollinger Bands: buy and sell at configurable points between the lower and upper Bollinger Bands.
BBTA Bollinger Bands (TA): buy and sell after a reentry at configurable points between the lower and upper Bollinger Bands.
EMASPREAD EMA spread: uses the spread between slow and fast EMA to trade when price direction changes.
emotionless Emotionless: "just works" strategy. Hardly any configurable parameters. Perfect for novice traders.
gain Gain: buy at a percentage below EMA, sell when your set gain is reached.
ichimoku Ichimoku: trading algorithm based on the Ichimoku cloud indicator.
MACD Moving average convergence/divergence: uses the MACD indicator to trade when momentum changes.
MACDH Moving average convergence/divergence histogram: uses the MACD histogram to trade when momentum changes.
pp Pingpong: set a fixed buy and sell price, perfect for coins that stay within a predictable price range.
stepgain Stepgain: like gain , but after hitting initial buy or sell level a trend watcher will check if prices will further decrease or increase - making sure to only buy or sell when the trend reverses.
SMACROSS Simple moving average cross: uses crossings of fast and slow SMA to trade when price direction changes.
tsa Time series analysis: tries to predict future prices and trades on predicted trend reversals.
tssl Trailing Stop / Stop Limit: uses a moving range around market prices for buying and selling, trailing optimal buy and sell levels.

Keep in mind that not all combinations of buy/sell methods are a good match to use together with trailing or certain confirming indicators.

For example using MACD, which triggers only in cycles where the MACD line crosses the signal line, together with Stochastic (in cross mode, which also only triggers in cycles with an indicator cross) as confirming indicator is a bad combination because both MACD and Stochastic must cross in the same cycle - very much reducing your opportunities for a trade.


Indicator based sell methods generally have no protection against selling below break-even point. Some buy methods allow for pyramid buying.

See the table below for details about protections/constraints per method.

Method Allows for pyramid buying? Protection against buying above EMA? Protection against selling below break-even point?
ADX no no no
ATRTS no no yes
bb no yes yes
BBTA no no no
EMASPREAD no no no
emotionless no yes yes
gain no yes yes
ichimoku no no no
MACD yes no no
MACDH yes no no
pp no no no
SMACROSS yes no no
stepgain no yes yes
tsa no no yes
tssl no yes yes

Using overrides

Settings for strategies are global, and apply to all pairs that you set to run on this strategy. When you need to make changes in the strategy settings for individual pairs, you can configure this using overrides for these pairs.

On the pair level you can define exceptions for parts of a strategy. You could for example use a higher TRADING_LIMIT on a pair that you see particular potential in. The following example does just that.

"BTC-ADA": {
	"strategy": "stepgain",
	"enabled": true,
	"override": {
                "TRADING_LIMIT": 9000.00,

This example shows how the override looks in the config file. Overrides can also be added easily with the GUI.

Strategy naming

You can create multiple variants of the same strategy, and give them an own name.

For example, you could save a second stepgain strategy under a different name - just make sure the BUY_METHOD and SELL_METHOD parameters matches one of the availabe strategies listed on top of this page.

"Bullish-stepgain": {
	"BUY_METHOD": "stepgain",
	"SELL_METHOD": "stepgain",

The pair syntax to use this strategy would then look like:

"BTC-ADA": {
	"strategy": "Bullish-stepgain",
	"enabled": true,
	"override": {  },

These examples show how this looks the config file. Creating strategies can be done easily with the GUI.

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.