rip out hyperopt things from strategy, add indicator populating to hyperopt

This commit is contained in:
Janne Sinivirta
2018-01-23 16:56:12 +02:00
parent a6cbc1ba16
commit c400d15ed1
6 changed files with 272 additions and 187 deletions

View File

@@ -1,6 +1,5 @@
from abc import ABC, abstractmethod
from pandas import DataFrame
from typing import Dict
class IStrategy(ABC):
@@ -43,15 +42,3 @@ class IStrategy(ABC):
:param dataframe: DataFrame
:return: DataFrame with buy column
"""
@abstractmethod
def hyperopt_space(self) -> Dict:
"""
Define your Hyperopt space for the strategy
"""
@abstractmethod
def buy_strategy_generator(self, params) -> None:
"""
Define the buy strategy parameters to be used by hyperopt
"""