Confirming indicators + advanced indicator settings

Settings to configure additional indicators as confirmation for buying or selling. These do not apply to reversal trading, for double up orders only the selected indicator for DU_METHODapplies.

Orders are placed when both the main strategy settings and confirming indicators meet the market situation. When TrailMe is used too, it must finish trailing while other conditions meet. All these conditions must occur in the same cycle.

Especially when TrailMe is used together with confirming indicators, it makes sense to not set the indicators too strict as all order criteria must happen in the same cycle for an order to be placed (strategy conditions + indicator conditions + hitting trailing stop).

Indicators in Gunbot are calculated with live data. For example for a 14 period RSI calculation, that means that the period close values for the past 13 completed candles are used, plus the live data for the current cycle.

Parameter Default value Description
RSI_BUY_ENABLED false Values: true or false.
Setting this to true will make sure Gunbot only buys when both strategy buying conditions and RSI_BUY_LEVEL are met.
RSI_SELL_ENABLED false Values: true or false.
Setting this to true will make sure Gunbot only sells when both strategy selling conditions and RSI_SELL_LEVEL are met.
RSI_METHOD oscillator Values: oscillator or cross.
Sets the method for using RSI. See RSI_BUY_LEVEL and RSI_SELL_LEVEL for detailed describtions of both methods.
RSI_BUY_LEVEL 30 Values: numerical, ranging between 1 and 99.
Set this to the RSI level you want to allow buy orders at.

RSI_METHOD = oscillator: when set to 40, buy orders will only be placed when RSI is 40 or lower.

RSI_METHOD = cross: when set to 40, buy orders will only be placed when RSI crosses over 40.

RSI_SELL_LEVEL 70 Values: numerical, ranging between 1 and 99.
Set this to the RSI level you want to allow sell orders at.

RSI_METHOD = oscillator: when set to 60, sell orders will only be placed when RSI is 60 or higher.

RSI_METHOD = cross: when set to 60, sell orders will only be placed when RSI crosses under 60.

RSI_LENGTH 14 Values: numerical, represents a number of candlestick periods.
Set this to the number of candlestick periods you want to use for calculating RSI.
STOCH_ENABLED false Values: true or false.
Setting this to true will make sure Gunbot only trades when both strategy trade conditions and STOCH_BUY_LEVEL/STOCH_SELL_LEVEL are met.
STOCH_METHOD oscillator Values: oscillator or cross.
Sets the method for using Stochastic. See STOCH_BUY_LEVEL and STOCH_SELL_LEVEL for detailed describtions of both methods.
STOCH_BUY_LEVEL 20 Values: numerical, ranging between 1 and 99.
Set this to the maximum Stochastic level you want to allow buy orders at.

When set to 30, buy orders will only be placed when Stochastic is between 0 and 30.

STOCH_METHOD = oscillator: a buy signal occurs when both Stoch %K and %D are below the set buy level.

STOCH_METHOD = cross: a buy signal occurs when both Stoch %K and %D are below the set buy level, additionally %K must cross over %D.

STOCH_SELL_LEVEL 80 Values: numerical, ranging between 1 and 99.
Set this to the minimum Stochastic level you want to allow sell orders at.

When set to 70, sell orders will only be placed when Stochastic is between 70 and 100.

STOCH_METHOD = oscillator: a sell signal occurs when both Stoch %K and %D are above the set sell level.

STOCH_METHOD = cross: a sell signal occurs when both Stoch %K and %D are above the set sell level, additionally %K must cross down %D.

STOCH_K 14 Values: numerical, represents a number of periods.
The number of periods used for calculating Stochastic %K.
SLOW_STOCH_K 3 Values: numerical, represents a number of periods.
The number of periods used for calculating Slow Stochastic %K.
STOCH_D 3 Values: numerical, represents a number of periods.
The number of periods used for calculating Stochastic %D.
STOCHRSI_ENABLED false Values: true or false.
Setting this to true will make sure Gunbot only trades when both strategy trade conditions and STOCHRSI_BUY_LEVEL/STOCHRSI_SELL_LEVEL are met.
STOCHRSI_METHOD oscillator Values: oscillator or cross.
Sets the method for using StochRSI. See STOCHRSI_BUY_LEVEL and STOCHRSI_SELL_LEVEL for detailed describtions of both methods.
STOCHRSI_BUY_LEVEL 0.2 Values: numerical, ranging between 0 and 1.
Set this to the StochRSI level you want to allow buy orders at.

STOCHRSI_METHOD = oscillator: when set to 0.2, buy orders will only be placed when StochRSI is 0.2 or lower.

STOCHRSI_METHOD = cross: when set to 0.2, buy orders will only be placed when StochRSI crosses over 0.2.

STOCHRSI_SELL_LEVEL 0.8 Values: numerical, ranging between 0 and 1.
Set this to the StochRSI level you want to allow sell orders at.

RSI_METHOD = oscillator: when set to 0.8, sell orders will only be placed when StochRSI is 0.8 or higher.

RSI_METHOD = cross: when set to 0.8, sell orders will only be placed when StochRSI crosses under 0.8.

STOCHRSI_LENGTH 14 Values: numerical, represents a number of candlestick periods.
Set this to the number of candlestick periods you want to use for calculating StochRSI.
MFI_ENABLED false Values: true or false.
Setting this to true will make sure Gunbot only sells when both strategy selling conditions and MFI_BUY_LEVEL/MFI_SELL_LEVEL are met.
MFI_BUY_LEVEL 30 Values: numerical, ranging between 1 and 99.
Defines the maximum MFI level you want to allow buy orders at.

When set to 30, buy orders will only be placed when MFI is between 0 and 30.

MFI_SELL_LEVEL 70 Values: numerical, ranging between 1 and 99.
Set this to the minimum MFI level you want to allow sell orders at.

For example: when set to 70, sell orders will only be placed when MFI is between 70 and 100.

MFI_LENGTH 14 Values: numerical, represents a number of candlestick periods.
Set this to the number of candlestick periods you want to use for calculating MFI.

MFI is calculated using an array of the period close prices of MFI_LENGTH-1 candles and the last price.

ADX_ENABLED false Values: true or false.
Setting this to true will enable ADX as a confirming indicator, only allowing trades when the trend strong enough to meet or exceeds the set ADX_LEVEL.

ADX measures both up- and downtrends, when DI + is lower than DI – prices are moving up (these values are visible in the logs). When DI – is lower than DI +, prices are moving down. The ADX value indicates the strength of the current up- or downtrend.

ADX_LEVEL 25 Values: numerical, ranging between 1 and 99.
Sets the minimum trend level that needs to be reached for orders to be allowed. This affects both buy and sell orders.

When set to 25, trades will only be placed when ADX is between 25 and 100.

DI_PERIOD 14 Values: numerical, ranging between 1 and 99.
Sets the number of candles used to calculate ADX.
EMASPREAD false Values: true or false.
Setting this to true will enable EMASPREAD as a confirming indicator for both buy and sell orders. The spread is calculated each cycle by subtracting the lowest EMA value from the highest EMA.

A buy signal occurs when EMA1 (slow EMA) is at least EMAx higher than EMA2 (fast EMA) and the EMASPREAD value starts to decrease (after having increased first). A sell signal occurs when EMA1 (slow EMA) is at least EMAxlower than EMA2 (fast EMA) and the EMASPREAD value starts to increase (after having decreased first).

EMAx 0.5 Values: numerical, represents a percentage.
Sets the minimum percentage difference between EMA1 and EMA2 for EMASPREAD.

When set to 1, the spread must reach at least 1% before EMASPREAD can trigger a buy or sell.

EMA_LENGTH 50 Values: numerical, represents a number of candlestick periods.
Set this to the number of candlestick periods you want be available for calculating EMA1 and EMA2.
BTC_PND_PROTECTION true Values: true or false.Setting this to true disables buy orders when there is too much price and volume pressure on BTC. This setting is dependent on BTC_MONEY_FLOW. Only use this if BTC pumps have a significant effect on your trading pair.
BTC_MONEY_FLOW 35 Values: numerical, ranging between 1 and 99.
Sets the value on the Money Flow Index (MFI) for BTC-USD that BTC_PND_PROTECTION disables orders for. As soon as MFI hits the set value or drops below it, BTC_PND_PROTECTION will be active.

The default value of 35 indicates that the BTC-USD market is moving into oversold territory and might start pumping soon, no buy orders would be placed while BTC-USD MFI is between 35 and 0. As long as BTC-USD is the defined oversold territory, no orders will be placed.

BTC_PND_PERIOD 14 Values: numerical, represents a number of candlestick periods.
Set this to the number of candlestick periods you want to use for calculating MFI for BTC_PND_PROTECTION.
CANDLES_LENGTH 99 Values: numerical, represents a number of candlestick periods.
Set this to the number of candlestick periods you want Gunbot to pull from the exchange, which are available for calculating other indicators. Always make sure that this setting is high enough for other indicators to be properly calculated. Please be aware that exchanges won’t always provide the number of specified candles, often it is less.

,

Sign up for our newsletter: