Used to combine any two of the above MACROSS indicators.
This buy/sell strategy is true when the COMBIMA 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 fast COMBIMA line must have crossed above the slow COMBIMA line. If a negative buy/sell_value
is used the fast COMBIMA line must have crossed below the slow COMBIMA line.
The cross must take place within the number of cross_candles
specified also.
COMBIMACROSS_slow_indicator
COMBIMACROSS_fast_indicator
COMBIMACROSS_cross_candles
COMBIMACROSS_candle_period
COMBIMACROSS_fast_length
COMBIMACROSS_slow_length
COMBIMACROSS_slow_indicator = (SMA/EMA/DEMA/WMA/HMA/TEMA)
COMBIMACROSS_fast_indicator = (SMA/EMA/DEMA/WMA/HMA/TEMA)
If you use
buy or sell_value_limit
the strategy can only be true between the buy/sell value and the limit (unless it is trailing).
# Buy strategy is true when the calculated spread is larger than -0.2% (Fast COMBIMA is LOWER than Slow COMBIMA) and the Fast COMBIMA crossed below the slow COMBIMA within the last 5 candles.
DEFAULT_A_buy_strategy = COMBIMACROSS
DEFAULT_A_buy_value = -0.2
# Buy strategy is true when the calculated spread is larger than 0.05% (Fast COMBIMA is ABOVE Slow COMBIMA) and the Fast COMBIMA crossed above the slow COMBIMA within the last 5 candles.
DEFAULT_A_buy_strategy = COMBIMACROSS
DEFAULT_A_buy_value = 0.05
# Sell strategy is true when the calculated spread is 0.6% or larger (Fast COMBIMA is HIGHER than Slow COMBIMA ) and the Fast COMBIMA crossed above the slow COMBIMA within the last 5 candles.
DEFAULT_A_sell_strategy = COMBIMACROSS
DEFAULT_A_sell_value = 0.6
# Buy strategy is true when the calculated spread is larger than -0.2% (Fast COMBIMA is LOWER than Slow COMBIMA) and the Fast COMBIMA crossed below the slow COMBIMA within the last 5 candles.
DEFAULT_DCA_A_buy_strategy = COMBIMACROSS
DEFAULT_DCA_A_buy_value = -0.2
# Buy strategy is true when the calculated spread is larger than 0.05% (Fast COMBIMA is ABOVE Slow COMBIMA) and the Fast COMBIMA crossed above the slow COMBIMA within the last 5 candles.
DEFAULT_DCA_A_buy_strategy = COMBIMACROSS
DEFAULT_DCA_A_buy_value = 0.05
# Sell strategy is true when the calculated spread is 0.6% or larger (Fast COMBIMA is HIGHER than Slow COMBIMA ) and the Fast COMBIMA crossed above the slow COMBIMA within the last 5 candles.
DEFAULT_DCA_A_sell_strategy = COMBIMACROSS
DEFAULT_DCA_A_sell_value = 0.6
COMBIMACROSS_slow_indicator = DEMA
COMBIMACROSS_fast_indicator = HMA
COMBIMACROSS_cross_candles = 5
COMBIMACROSS_candle_period = 3600
COMBIMACROSS_fast_length = 14
COMBIMACROSS_slow_length = 5