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+.
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.
Buy settings
Buy settings are the primary trigger for buy orders. These parameters control the execution of buy orders when using adx
as buy method.
Buy enabled
- Description
- Values
- Order types
- Name
Set this to false to prevent Gunbot from placing buy orders.
Values: true or false
Default value: true
Affects | Does not affect |
---|---|
Strategy buy | Strategy sell |
DCA buy | Stop limit |
RT buy | Close |
RT buyback | RT sell |
Parameter name in config.js
: BUY_ENABLED
Buy Level
- Description
- Values
- Order types
- Name
This sets entry point for TAKE_BUY
at a percentage below the lowest EMA.
When you set this to 1, the entry point will be set 1% below the currently lowest EMA.
Values: numerical, represents a percentage.
Default value: 1
Affects | Does not affect |
---|---|
Strategy buy | Strategy sell |
Stop limit | |
Close | |
RT sell | |
DCA buy | |
RT buy | |
RT buyback |
Parameter name in config.js
: BUY_LEVEL
Sell settings
Sell settings are the primary trigger for sell orders. These parameters control the execution of sell orders when using adx
as sell method.
Sell enabled
- Description
- Values
- Order types
- Name
Set this to false to prevent Gunbot from placing sell orders.
Values: true or false
Default value: true
Affects | Does not affect |
---|---|
Strategy sell | Strategy buy |
Stop limit | RT buy |
RT sell | RT buyback |
Close | |
DCA buy |
Parameter name in config.js
: SELL_ENABLED
Gain
- Description
- Values
- Order types
- Name
This sets the minimum target for selling when DOUBLE_CHECK_GAIN
is enabled.
Values: numerical – represents a percentage.
Default value: 0.5
Affects | Does not affect |
---|---|
Strategy sell | Strategy buy |
RT buy | |
RT buyback | |
RT sell | |
Close | |
DCA buy | |
Stop limit | |
Parameter name in config.js
: GAIN
Indicator settings
Relevant indicators for trading with ADX
These settings have a direct effect on trading with adx
.
Period
- Description
- Values
- Order types
- Name
This sets the candlestick period used for trading, this affects all indicators within the strategy.
Only use supported values. The trading settings editor suggests valid values for the selected exchange..
Setting a short period allows you to trade on shorter trends, but be aware that these will be noisier than longer periods.
Values: numerical– represents candlestick size in minutes.
Default value: 15
Affects | Does not affect |
---|---|
Strategy sell | RT buy |
Strategy buy | RT buyback |
DCA buy (when using an indicator to trigger) | RT sell |
Close | |
Stop limit |
Parameter name in config.js
: PERIOD
ADX Level
- Description
- Values
- Order types
- Name
Sets the minimum trend level that needs to be reached for orders to be allowed.
When set to 25, trades will be placed as soon as ADX is 25 or higher.
Values: numerical, ranging between 1 and 99.
Default value: 25
Affects | Does not affect |
---|---|
Strategy sell | RT buy |
Strategy buy | RT buyback |
RT sell | |
Close | |
Stop limit | |
DCA buy |
Parameter name in config.js
: ADX_LEVEL
DI Period
- Description
- Values
- Order types
- Name
Sets the number of candles used to calculate ADX.
Values: numerical, represents a number of periods.
Default value: 14
Affects | Does not affect |
---|---|
Strategy sell | RT buy |
Strategy buy | RT buyback |
RT sell | |
Close | |
Stop limit | |
DCA buy |
Parameter name in config.js
: DI_PERIOD