From 83fd27e0311471b1bd2f33ecfc6a1a9b9eb1f641 Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Sat, 11 Nov 2017 08:32:35 +0200 Subject: [PATCH] add sar reversal as 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 50f3b94f4..d7e7cbe3f 100644 --- a/freqtrade/tests/test_hyperopt.py +++ b/freqtrade/tests/test_hyperopt.py @@ -50,6 +50,7 @@ def buy_strategy_generator(params): 'ao_cross_zero': (crossed_above(dataframe['ao'], 0.0)), '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'])), } conditions.append(triggers.get(params['trigger']['type'])) @@ -125,6 +126,7 @@ def test_hyperopt(backtest_conf, backdata, mocker): {'type': 'ao_cross_zero'}, {'type': 'ema5_cross_ema10'}, {'type': 'macd_cross_signal'}, + {'type': 'sar_reversal'}, ]), } trials = Trials()