From 2963a90008723f3c2797915686e0f04663dbf9f0 Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Sun, 12 Nov 2017 08:38:52 +0200 Subject: [PATCH] add stochastics trigger --- freqtrade/tests/test_hyperopt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freqtrade/tests/test_hyperopt.py b/freqtrade/tests/test_hyperopt.py index b501f35cc..33fd1e69b 100644 --- a/freqtrade/tests/test_hyperopt.py +++ b/freqtrade/tests/test_hyperopt.py @@ -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()