Add plot_config to interface

This commit is contained in:
Matthias 2020-01-04 11:14:00 +01:00
parent 5853b9904c
commit f04873b0b0
2 changed files with 4 additions and 4 deletions

View File

@ -363,15 +363,13 @@ AVAILABLE_CLI_OPTIONS = {
"indicators1": Arg(
'--indicators1',
help='Set indicators from your strategy you want in the first row of the graph. '
'Space-separated list. Example: `ema3 ema5`. Default: `%(default)s`.',
default=['sma', 'ema3', 'ema5'],
"Space-separated list. Example: `ema3 ema5`. Default: `['sma', 'ema3', 'ema5']`.",
nargs='+',
),
"indicators2": Arg(
'--indicators2',
help='Set indicators from your strategy you want in the third row of the graph. '
'Space-separated list. Example: `fastd fastk`. Default: `%(default)s`.',
default=['macd', 'macdsignal'],
"Space-separated list. Example: `fastd fastk`. Default: `['macd', 'macdsignal']`.",
nargs='+',
),
"plot_limit": Arg(

View File

@ -112,6 +112,8 @@ class IStrategy(ABC):
dp: Optional[DataProvider] = None
wallets: Optional[Wallets] = None
plot_config: Dict
def __init__(self, config: dict) -> None:
self.config = config
# Dict to determine if analysis is necessary