From 22cfef7d36dfebc9290b23caa4443da1e8194820 Mon Sep 17 00:00:00 2001 From: Janne Sinivirta Date: Sat, 28 Oct 2017 16:40:21 +0300 Subject: [PATCH] add ema5 cross ema10 trigger to hyperopt --- freqtrade/tests/test_hyperopt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/freqtrade/tests/test_hyperopt.py b/freqtrade/tests/test_hyperopt.py index 99063c602..8a34eb94e 100644 --- a/freqtrade/tests/test_hyperopt.py +++ b/freqtrade/tests/test_hyperopt.py @@ -66,6 +66,7 @@ def buy_strategy_generator(params): 'lower_bb': dataframe['tema'] <= dataframe['blower'], 'faststoch10': (dataframe['fastd'] >= 10) & (prev_fastd < 10), 'ao_cross_zero': (crossed_above(dataframe['ao'], 0.0)), + 'ema5_cross_ema10': (crossed_above(dataframe['ema5'], dataframe['ema10'])), } conditions.append(triggers.get(params['trigger']['type'])) @@ -139,7 +140,8 @@ def test_hyperopt(conf, pairs, mocker): 'trigger': hp.choice('trigger', [ {'type': 'lower_bb'}, {'type': 'faststoch10'}, - {'type': 'ao_cross_zero'} + {'type': 'ao_cross_zero'}, + {'type': 'ema5_cross_ema10'}, ]), } trials = Trials()