change signature

This commit is contained in:
kevinjulian 2021-07-22 02:11:54 +07:00
parent 46f2a20a98
commit 25e329623f
1 changed files with 1 additions and 1 deletions

View File

@ -497,7 +497,7 @@ class IStrategy(ABC, HyperStrategyMixin):
else:
raise StrategyError(message)
def get_signal(self, pair: str, timeframe: str, dataframe: DataFrame) -> Tuple[bool, bool, str]:
def get_signal(self, pair: str, timeframe: str, dataframe: DataFrame) -> Tuple[bool, bool, Optional[str]]:
"""
Calculates current signal based based on the buy / sell columns of the dataframe.
Used by Bot to get the signal to buy or sell