mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 11:51:19 +00:00
rip out hyperopt things from strategy, add indicator populating to hyperopt
This commit is contained in:
@@ -33,8 +33,6 @@ def test_strategy_structure():
|
||||
assert hasattr(Strategy, 'populate_indicators')
|
||||
assert hasattr(Strategy, 'populate_buy_trend')
|
||||
assert hasattr(Strategy, 'populate_sell_trend')
|
||||
assert hasattr(Strategy, 'hyperopt_space')
|
||||
assert hasattr(Strategy, 'buy_strategy_generator')
|
||||
|
||||
|
||||
def test_load_strategy(result):
|
||||
@@ -71,12 +69,6 @@ def test_strategy(result):
|
||||
dataframe = strategy.populate_sell_trend(strategy.populate_indicators(result))
|
||||
assert 'sell' in dataframe.columns
|
||||
|
||||
assert hasattr(strategy.custom_strategy, 'hyperopt_space')
|
||||
assert 'adx' in strategy.hyperopt_space()
|
||||
|
||||
assert hasattr(strategy.custom_strategy, 'buy_strategy_generator')
|
||||
assert callable(strategy.buy_strategy_generator({}))
|
||||
|
||||
|
||||
def test_strategy_override_minimal_roi(caplog):
|
||||
config = {
|
||||
|
||||
Reference in New Issue
Block a user