Skip to main content

ADX

Use the ADX indicator to determine when to buy and sell. This indicator measures the strength of a trend, allowing Gunbot to buy during strong uptrends and sell during strong downtrends. Gunbot uses ADX together with Directional Index.

ADX is a popular technical analysis tool used by traders to identify trends in the market. It is calculated using a series of calculations that take into account the highs and lows of price movements over a specified time period. Generally, an ADX reading above 25 indicates a strong trend, while a reading below 20 suggests a weak trend. The ADX can be used in conjunction with other indicators to confirm trading signals and help traders make informed decisions.

How to work with it

Buy method conditions

Buy allowed when ADX value exceeds 'ADX level' and DI+ is above DI-.

Sell method conditions

Sell allowed when ADX value exceeds 'ADX level' and DI- is above DI+.

info

Gain protection is optional for this method.

Be aware that this can lead to sell orders below your break-even point.

Trading example

Example of how trading with this strategy can perform. Details and settings.

The infographic below describes what triggers trades with this strategy.

ADX Strategy settings

Buy settings

LabelConfig ParameterDefault ValueDetailed Description
Buy enabledBUY_ENABLEDtrueEnables the ability for you to place buy or long orders. When enabled, the strategy will initiate purchases according to other defined parameters.

Sell settings

LabelConfig ParameterDefault ValueDetailed Description
Sell enabledSELL_ENABLEDtrueAllows the strategy to place sell or short orders.
Double check gainDOUBLE_CHECK_GAINtrueEnsures a positive gain is achieved before allowing a sell order to proceed.

Disabling this setting allows for the possibility of selling at a loss based on other indicators' suggestions.
GainGAIN1Sets the gain target above break-even, expressed as a percentage.

Adjustable range is between 0.1% and 5%, ensuring flexibility in targeting desired profits.
Count sellCOUNT_SELL9999Configures the number of sell orders allowed before disabling the trading pair.

This limits the number of sales transactions since adding the pair, offering a control measure on trading frequency.

Indicators

LabelConfig ParameterDefault ValueDetailed Description
PeriodPERIOD15 minutesSpecifies the duration of candlesticks used in the calculation of indicators. This should align with supported periods available on your exchange. The value represents the candlestick duration in minutes.
ADX levelADX_LEVEL25Sets the minimum trend level required to initiate trades, with a configurable range from 1 to 99. This setting helps in identifying the strength of the trend needed to consider entering a trade.
DI periodDI_PERIOD14Defines the number of candlesticks to use for calculating the ADX. Adjustable from 10 to 50, allowing you to tailor the sensitivity of the ADX indicator to the desired timeframe.

Overview of effects on different order types

Config ParameterAffected Order TypesNot Affected Order Types
Buy EnabledStrategy buy, DCA buy, RT buy, RT buybackStrategy sell, Stop limit, Close, RT sell
Buy LevelStrategy buyStrategy sell, Stop limit, Close, RT sell, DCA buy, RT buy, RT buyback
Sell EnabledStrategy sell, Stop limit, RT sellStrategy buy, RT buy, RT buyback, Close, DCA buy
GainStrategy sellStrategy buy, RT buy, RT buyback, RT sell, Close, DCA buy, Stop limit
PeriodStrategy sell, Strategy buy, DCA buy (when using an indicator to trigger)RT buy, RT buyback, RT sell, Close, Stop limit
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