Add class-level attributes to hyperopt and strategy

This commit is contained in:
Matthias 2020-06-02 10:19:27 +02:00
parent 8e1a664a48
commit a8005819c9
2 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,8 @@ class IHyperOpt(ABC):
Class attributes you can use:
ticker_interval -> int: value of the ticker interval to use for the strategy
"""
ticker_interval: str
ticker_interval: str # deprecated
timeframe: str
def __init__(self, config: dict) -> None:
self.config = config

View File

@ -86,6 +86,7 @@ class IStrategy(ABC):
trailing_only_offset_is_reached = False
# associated timeframe
ticker_interval: str # DEPRECATED
timeframe: str
# Optional order types