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": Arg(
'--indicators1', '--indicators1',
help='Set indicators from your strategy you want in the first row of the graph. ' help='Set indicators from your strategy you want in the first row of the graph. '
'Space-separated list. Example: `ema3 ema5`. Default: `%(default)s`.', "Space-separated list. Example: `ema3 ema5`. Default: `['sma', 'ema3', 'ema5']`.",
default=['sma', 'ema3', 'ema5'],
nargs='+', nargs='+',
), ),
"indicators2": Arg( "indicators2": Arg(
'--indicators2', '--indicators2',
help='Set indicators from your strategy you want in the third row of the graph. ' help='Set indicators from your strategy you want in the third row of the graph. '
'Space-separated list. Example: `fastd fastk`. Default: `%(default)s`.', "Space-separated list. Example: `fastd fastk`. Default: `['macd', 'macdsignal']`.",
default=['macd', 'macdsignal'],
nargs='+', nargs='+',
), ),
"plot_limit": Arg( "plot_limit": Arg(

View File

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