This buy/sell strategy is true when the K and D lines have crossed and the spread is larger (bigger spread) than (or equal to (for selling)) the buy/sell_value
.
The direction of the cross is important. If a positive buy/sell_value
is used the K line must have crossed above the D line. If a negative buy/sell_value
is used the K line must have crossed below the D line.
The cross must take place within the number of cross_candles
specified also.
STOCHRSICROSS_candle_period
STOCHRSICROSS_rsi_length
STOCHRSICROSS_stoch_length
STOCHRSICROSS_K
STOCHRSICROSS_D
STOCHRSICROSS_cross_candles
# Buy when the spread is bigger than 2. (K is above D line)
# and the K line crossed above the D line within the last 2 candles.
DEFAULT_A_buy_strategy = STOCHRSICROSS
DEFAULT_A_buy_value = 2
# Buy when the spread is smaller than -0.5. (K is above D line)
# and the K line crossed below the D line within the last 2 candles.
DEFAULT_DCA_A_buy_strategy = STOCHRSICROSS
DEFAULT_DCA_A_buy_value = -0.5
STOCHRSICROSS_candle_period = 300
STOCHRSICROSS_rsi_length = 14
STOCHRSICROSS_stoch_length = 14
STOCHRSICROSS_K = 3
STOCHRSICROSS_D = 3
STOCHRSICROSS_cross_candles = 2