add stochastics trigger
This commit is contained in:
parent
15b20b83fa
commit
2963a90008
@ -50,6 +50,7 @@ def buy_strategy_generator(params):
|
||||
'ema5_cross_ema10': (crossed_above(dataframe['ema5'], dataframe['ema10'])),
|
||||
'macd_cross_signal': (crossed_above(dataframe['macd'], dataframe['macdsignal'])),
|
||||
'sar_reversal': (crossed_above(dataframe['close'], dataframe['sar'])),
|
||||
'stochf_cross': (crossed_above(dataframe['fastk'], dataframe['fastd'])),
|
||||
}
|
||||
conditions.append(triggers.get(params['trigger']['type']))
|
||||
|
||||
@ -126,6 +127,7 @@ def test_hyperopt(backtest_conf, backdata, mocker):
|
||||
{'type': 'ema5_cross_ema10'},
|
||||
{'type': 'macd_cross_signal'},
|
||||
{'type': 'sar_reversal'},
|
||||
{'type': 'stochf_cross'},
|
||||
]),
|
||||
}
|
||||
trials = Trials()
|
||||
|
Loading…
Reference in New Issue
Block a user