rip out hyperopt things from strategy, add indicator populating to hyperopt
This commit is contained in:
@@ -22,8 +22,6 @@ def test_default_strategy_structure():
|
||||
assert hasattr(DefaultStrategy, 'populate_indicators')
|
||||
assert hasattr(DefaultStrategy, 'populate_buy_trend')
|
||||
assert hasattr(DefaultStrategy, 'populate_sell_trend')
|
||||
assert hasattr(DefaultStrategy, 'hyperopt_space')
|
||||
assert hasattr(DefaultStrategy, 'buy_strategy_generator')
|
||||
|
||||
|
||||
def test_default_strategy(result):
|
||||
@@ -36,5 +34,3 @@ def test_default_strategy(result):
|
||||
assert type(indicators) is DataFrame
|
||||
assert type(strategy.populate_buy_trend(indicators)) is DataFrame
|
||||
assert type(strategy.populate_sell_trend(indicators)) is DataFrame
|
||||
assert type(strategy.hyperopt_space()) is dict
|
||||
assert callable(strategy.buy_strategy_generator({}))
|
||||
|
@@ -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