SMACROSS(SMA)
EMACROSS(EMA)
DEMACROSS(DEMA)
HMACROSS(HMA)
TEMACROSS(TEMA)
WMACROSS(WMA)
VWMACROSS(VWMA)
SMMACROSS(SMMA)
This buy/sell strategy is true when the lines have crossed and the spread is larger (bigger spread) than the buy/sell value.
This buy/sell strategy is true when the CROSS between fast and slow is above or below the value specified.
If a positive
value is used the fast line must be above slow line and spread must be bigger than the value we specify.
If a negative
value is used the fast line must be below slow line and spread must be lower than the value we specify.
The cross must have already taken place within the number of cross_candles
.
A cross_candles
value of 2 means the cross must have happened up to 2 candles ago.
XMA_candle_period
XMA_fast_length
XMA_slow_length
XMA_cross_candles
# Buy when fast line is 2% or more above our slow line
# AND cross happened within the last 2 candles.
DEFAULT_A_buy_strategy_label = 5MSMACROSS
DEFAULT_A_buy_strategy = SMACROSS
DEFAULT_A_buy_value = 2
# Sell when fast line drops more than 0.1% below the slow line
# AND cross happened within the last 1 candle
DEFAULT_A_sell_strategy_label = 1HEMACROSS
DEFAULT_A_sell_strategy = EMACROSS
DEFAULT_A_sell_value = -0.1
# Buy when fast line drops more than 5% below our slow line
# AND cross happened within the last 5 candles
DEFAULT_DCA_A_buy_strategy_label = MYTEMA
DEFAULT_DCA_A_buy_strategy = TEMACROSS
DEFAULT_DCA_A_buy_value = -5
# Sell when fast line is 4% or more above the slow line
# AND cross happened within the last 5 candles
DEFAULT_DCA_A_sell_strategy_label = MYTEMA
DEFAULT_DCA_A_sell_strategy = TEMACROSS
DEFAULT_DCA_A_sell_value = 4
5MSMACROSS_candle_period = 300
5MSMACROSS_fast_length = 20
5MSMACROSS_slow_length = 40
5MSMACROSS_cross_candles = 2
1HEMACROSS_candle_period = 3600
1HEMACROSS_fast_length = 10
1HEMACROSS_slow_length = 50
1HEMACROSS_cross_candles = 1
MYTEMA_candle_period = 3600
MYTEMA_fast_length = 11
MYTEMA_slow_length = 33
MYTEMA_cross_candles = 5