From ce3603f84facf4fef042dc8a9337b8e46af81045 Mon Sep 17 00:00:00 2001 From: enenn Date: Mon, 26 Mar 2018 16:04:04 +0200 Subject: [PATCH] Change ticker_interval from 5 to 5m in default strategy --- freqtrade/strategy/default_strategy.py | 2 +- freqtrade/tests/strategy/test_default_strategy.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/strategy/default_strategy.py b/freqtrade/strategy/default_strategy.py index ea37735b7..ec39578c7 100644 --- a/freqtrade/strategy/default_strategy.py +++ b/freqtrade/strategy/default_strategy.py @@ -28,7 +28,7 @@ class DefaultStrategy(IStrategy): stoploss = -0.10 # Optimal ticker interval for the strategy - ticker_interval = 5 + ticker_interval = '5m' def populate_indicators(self, dataframe: DataFrame) -> DataFrame: """ diff --git a/freqtrade/tests/strategy/test_default_strategy.py b/freqtrade/tests/strategy/test_default_strategy.py index 00ddc34ea..93cb76366 100644 --- a/freqtrade/tests/strategy/test_default_strategy.py +++ b/freqtrade/tests/strategy/test_default_strategy.py @@ -31,7 +31,7 @@ def test_default_strategy(result): assert type(strategy.minimal_roi) is dict assert type(strategy.stoploss) is float - assert type(strategy.ticker_interval) is int + assert type(strategy.ticker_interval) is str indicators = strategy.populate_indicators(result) assert type(indicators) is DataFrame assert type(strategy.populate_buy_trend(indicators)) is DataFrame