Add class-level attributes to hyperopt and strategy
This commit is contained in:
parent
8e1a664a48
commit
a8005819c9
@ -31,7 +31,8 @@ class IHyperOpt(ABC):
|
|||||||
Class attributes you can use:
|
Class attributes you can use:
|
||||||
ticker_interval -> int: value of the ticker interval to use for the strategy
|
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:
|
def __init__(self, config: dict) -> None:
|
||||||
self.config = config
|
self.config = config
|
||||||
|
@ -86,6 +86,7 @@ class IStrategy(ABC):
|
|||||||
trailing_only_offset_is_reached = False
|
trailing_only_offset_is_reached = False
|
||||||
|
|
||||||
# associated timeframe
|
# associated timeframe
|
||||||
|
ticker_interval: str # DEPRECATED
|
||||||
timeframe: str
|
timeframe: str
|
||||||
|
|
||||||
# Optional order types
|
# Optional order types
|
||||||
|
Loading…
Reference in New Issue
Block a user