This strategy can be used to determine the STRENGTH of a trend. It however does not give you any indication of the direction.
By default this strategy is true when the ADX value is less than the buy_value
or is greater than or equal to the sell_value
.
Use buy/sell strategy direction to change this if needed.
Use TV built in Average Directional Index
# Buy when ADX is bigger than 35
DEFAULT_A_buy_strategy = ADX
DEFAULT_A_buy_strategy_direction = UP
DEFAULT_A_buy_value = 35
# Sell when ADX is below 15
DEFAULT_A_sell_strategy = ADX
DEFAULT_A_sell_strategy_direction = DOWN
DEFAULT_A_sell_value = 15
# Buy when ADX is bigger than 35
DEFAULT_DCA_A_buy_strategy = ADX
DEFAULT_DCA_A_buy_strategy_direction = UP
DEFAULT_DCA_A_buy_value = 35
# Sell when ADX is below 20
DEFAULT_DCA_A_sell_strategy = ADX
DEFAULT_DCA_A_sell_strategy_direction = DOWN
DEFAULT_DCA_A_sell_value = 20
ADX_candle_period = 1800
ADX_length = 14
ADX_DI_length = 14