fixed errors and making flake pass

This commit is contained in:
Gert Wohlgemuth 2018-07-16 20:40:17 -07:00 committed by Matthias
parent 2e6e5029ba
commit 5871488858
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,7 @@ class IStrategy(ABC):
def __init__(self, config: dict) -> None:
self.config = config
@abstractmethod
def populate_indicators(self, dataframe: DataFrame) -> DataFrame:
"""
Populate indicators that will be used in the Buy and Sell strategy
@ -80,6 +81,7 @@ class IStrategy(ABC):
DeprecationWarning)
return dataframe
@abstractmethod
def populate_buy_trend(self, dataframe: DataFrame) -> DataFrame:
"""
Based on TA indicators, populates the buy signal for the given dataframe
@ -91,6 +93,7 @@ class IStrategy(ABC):
dataframe.loc[(), 'buy'] = 0
return dataframe
@abstractmethod
def populate_sell_trend(self, dataframe: DataFrame) -> DataFrame:
"""
Based on TA indicators, populates the sell signal for the given dataframe