Skip to main content

Confirming indicators

To enhance the precision of your trading strategy, you can utilize several confirmation indicators to validate buying and selling criteria. This article outlines all available settings for confirmation indicators.

Orders will only be executed if both the main strategy settings and confirmation indicators align. If TrailMe is incorporated, it must complete trailing while satisfying other conditions as well. All these conditions must coincide within the same cycle.

When using TrailMe in conjunction with confirming indicators, it is advisable to avoid setting the indicators too strictly. This is because all order criteria must occur simultaneously for an order to be placed.


Indicators are calculated with live data

Gunbot calculates indicators using real-time data. To illustrate, let's take the example of a 14-period RSI calculation. This means that Gunbot uses the closing values of the past 13 completed candles in addition to the live data of the current open candle to calculate the indicator value.

Exchanges do not provide indicator data, so Gunbot has to calculate its own. Exchanges only provide raw data for calculating indicators. While Gunbot uses what we consider the best library for indicators, it's important to note that exchanges or TradingView may display slightly different indicator values due to differences in their calculation methods.


Confirming Indicators settings

ADX (Average Directional Index)

LabelConfig ParameterDefault ValueDetailed Description
ADX enabledADX_ENABLEDfalseEnables the ADX as a confirming indicator. This indicator helps to measure the strength of a trend.
ADX levelADX_LEVEL25Sets the minimum trend strength level required for making trades. The ADX level ranges from 1 to 99, with higher values indicating stronger trends.
DI periodDI_PERIOD14Specifies the number of candles used to calculate the ADX, allowing you to adjust the sensitivity of the trend measurement.

Stochastic Oscillator

LabelConfig ParameterDefault ValueDetailed Description
Stoch enabledSTOCH_ENABLEDfalseEnables the Stochastic Oscillator as a confirming indicator, which is useful for identifying overbought and oversold conditions.
Stoch buy levelSTOCH_BUY_LEVEL30Defines the maximum Stochastic value at which buy orders are allowed. It helps in identifying potential oversold conditions conducive to buying. Set -1001 to disable.
Stoch sell levelSTOCH_SELL_LEVEL70Sets the minimum Stochastic value at which sell orders are considered, aiming to capture overbought conditions that might precede a price drop. Set -1001 to disable.
Stoch methodSTOCH_METHODoscillatorChooses the operational mode for the Stochastic indicator. Oscillator mode requires the Stoch value to be within the specified range, while Cross mode triggers when the Stoch crosses a set threshold.
Stoch KSTOCH_K14Defines the number of candles used to calculate the %K line of the Stochastic Oscillator, influencing how quickly the indicator reacts to price changes.
Slow stoch KSLOW_STOCH_K3Determines the smoothing period for the %K line, affecting the sensitivity and smoothness of the indicator.
Stoch DSTOCH_D3Sets the calculation period for the %D line, which is the moving average of the %K line, providing a signal line for identifying crossovers and divergences.

RSI (Relative Strength Index)

LabelConfig ParameterDefault ValueDetailed Description
RSI buy enabledRSI_BUY_ENABLEDfalseEnables RSI as a confirming indicator for buy orders. RSI measures the speed and change of price movements, helping identify potentially undervalued conditions.
RSI buy levelRSI_BUY_LEVEL30Sets the maximum RSI value at which buy orders are allowed. A low RSI indicates potential oversold conditions and could be a good buying opportunity.
RSI sell enabledRSI_SELL_ENABLEDfalseEnables RSI as a confirming indicator for sell orders. This setting helps to determine when an asset is potentially overvalued and might be poised for a price decline.
RSI sell levelRSI_SELL_LEVEL70Sets the minimum RSI value at which sell orders are considered. A high RSI suggests overbought conditions and might indicate a selling point.
RSI methodRSI_METHODoscillatorDefines the operational method for RSI: Oscillator requires RSI to be within a specified range, while Cross triggers when RSI crosses the set level.
RSI lengthRSI_LENGTH14Sets the number of candles used to calculate RSI, influencing its sensitivity to price movements.

Stoch RSI (Stochastic Relative Strength Index)

LabelConfig ParameterDefault ValueDetailed Description
Stoch RSI enabledSTOCHRSI_ENABLEDfalseActivates the Stoch RSI as a confirming indicator, which is useful for identifying more volatile overbought or oversold conditions than traditional RSI.
Stoch RSI buy levelSTOCHRSI_BUY_LEVEL0.2Specifies the maximum Stoch RSI value for allowing buy orders, targeting oversold conditions to suggest buying opportunities. Set -1001 to disable.
Stoch RSI sell levelSTOCHRSI_SELL_LEVEL0.8Defines the minimum Stoch RSI value for permitting sell orders, aiming to pinpoint overbought conditions that may precede a downward price movement. Set -1001 to disable.
Stoch RSI methodSTOCHRSI_METHODoscillatorChooses the operational mode for Stoch RSI: Oscillator requires the indicator to be within a specific range for trades, while Cross triggers trades when the Stoch RSI crosses a predetermined level.
Stoch RSI lengthSTOCHRSI_LENGTH14Determines the number of candles used to calculate Stoch RSI, affecting how quickly the indicator responds to price changes.

MFI (Money Flow Index)

LabelConfig ParameterDefault ValueDetailed Description
MFI enabledMFI_ENABLEDfalseEnables the Money Flow Index (MFI) as a confirming indicator, which uses both price and volume to measure buying and selling pressure.
MFI buy levelMFI_BUY_LEVEL30Sets the maximum MFI level at which buy orders are allowed. Lower levels indicate potential oversold conditions, suggesting a buying opportunity. Set -1001 to disable.
MFI sell levelMFI_SELL_LEVEL70Defines the minimum MFI value at which sell orders are considered. Higher values may indicate overbought conditions, suggesting a potential sell opportunity. Set -1001 to disable.
MFI lengthMFI_LENGTH14Determines the number of candles used to calculate the MFI. A longer length provides a smoother but slower-to-react indicator.

BTC PND Protection (Pump and Dump Protection for BTC)

LabelConfig ParameterDefault ValueDetailed Description
BTC pnd protectionBTC_PND_PROTECTIONfalseActivates protection to prevent buy orders during suspected pump and dump scenarios in the BTC/USD market, based on the Money Flow Index (MFI).
BTC pnd periodBTC_PND_PERIOD14Sets the MFI calculation period for the BTC pump and dump protection. This value adjusts the sensitivity of the MFI to recent price and volume changes.
BTC money flowBTC_MONEY_FLOW25Sets the MFI threshold for BTC/USD. If the MFI drops below this value, it may indicate a pump and dump event, triggering protection mechanisms.

EMA Spread

LabelConfig ParameterDefault ValueDetailed Description
EMA spreadEMASPREADfalseUses the spread between the fast and medium Exponential Moving Averages (EMAs) as a confirming indicator for both buy and sell orders.
EMAxEMAx0.5Sets the minimum percentage difference required between the fast and medium EMAs to confirm trade signals. This parameter helps in identifying significant trend strengths.

Other indicator settings

LabelConfig ParameterDefault ValueDetailed Description
Standard deviationSTDV2Sets the multiplier for calculating the width of the Bollinger Bands, which are used to measure market volatility and potential price targets.
SMA periodSMAPERIOD50Specifies the number of candles used to calculate the Simple Moving Average (SMA), influencing indicators like Bollinger Bands and trend analysis.
Candles lengthCANDLES_LENGTH400Determines the number of historical candles requested from the exchange, which is essential for calculating various technical indicators.
EMA lengthEMA_LENGTH100Sets the number of candles used to calculate the Exponential Moving Average (EMA), affecting the sensitivity and lag of the indicator.

Overview of effects on different order types

Config ParameterAffected Order TypesNot Affected Order Types
ADX EnabledStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
ADX LevelStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
DI PeriodStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
BTC PND ProtectionStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
BTC Money FlowStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
BTC PND PeriodStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
EMA SpreadStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
EMAxStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
MFI EnabledStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
MFI Buy LevelStrategy buyStrategy sell, RT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
MFI Sell LevelStrategy sellStrategy buy, RT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
MFI LengthStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
RSI Buy EnabledStrategy buyStrategy sell, RT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
RSI Sell EnabledStrategy sellStrategy buy, RT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
RSI MethodStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
RSI Buy LevelStrategy buyStrategy sell, RT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
RSI Sell LevelStrategy sellStrategy buy, RT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
RSI LengthStrategy sell, Strategy buy, DCA buy (when using RSI)RT buy, RT buyback, RT sell, Close, Stop limit
Stoch EnabledStrategy buy, Strategy sellRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
Stoch MethodStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
Stoch Buy LevelStrategy buyStrategy sell, RT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
Stoch Sell LevelStrategy sellStrategy buy, RT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
Stoch KStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
Slow Stoch KStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
Stoch DStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
Stoch RSI EnabledStrategy buy, Strategy sellRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
Stoch RSI MethodStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
Stoch RSI Buy LevelStrategy buyStrategy sell, RT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
Stoch RSI Sell LevelStrategy sellStrategy buy, RT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
Stoch RSI LengthStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
EMA LengthStrategy sell, Strategy buyRT buy, RT buyback, RT sell, Close, Stop limit, DCA buy
Candles LengthStrategy sell, Strategy buy, DCA buy (when using an indicator as trigger)RT buy, RT buyback, RT sell, Close, Stop limit
SMA PeriodStrategy sell, Strategy buy, DCA buy (when using HIGHBB option for DCA)RT buy, RT buyback, RT sell, Close, Stop limit
Standard DeviationStrategy sell, Strategy buy, DCA buy (when using HIGHBB option for DCA)RT buy, RT buyback, RT sell, Close, Stop limit