mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-14 04:03:55 +00:00
Copy plot options to config
This commit is contained in:
parent
3f04930f38
commit
907c2f1e6b
|
@ -98,6 +98,9 @@ class Configuration(object):
|
||||||
# Load Optimize configurations
|
# Load Optimize configurations
|
||||||
config = self._load_optimize_config(config)
|
config = self._load_optimize_config(config)
|
||||||
|
|
||||||
|
# Add plotting options if available
|
||||||
|
config = self._load_plot_config(config)
|
||||||
|
|
||||||
# Set runmode
|
# Set runmode
|
||||||
if not self.runmode:
|
if not self.runmode:
|
||||||
# Handle real mode, infer dry/live from config
|
# Handle real mode, infer dry/live from config
|
||||||
|
@ -332,6 +335,26 @@ class Configuration(object):
|
||||||
|
|
||||||
return config
|
return config
|
||||||
|
|
||||||
|
def _load_plot_config(self, config: Dict[str, Any]) -> Dict[str, Any]:
|
||||||
|
"""
|
||||||
|
Extract information for sys.argv Plotting configuration
|
||||||
|
:return: configuration as dictionary
|
||||||
|
"""
|
||||||
|
|
||||||
|
self._args_to_config(config, argname='pairs',
|
||||||
|
logstring='Using pairs {}')
|
||||||
|
|
||||||
|
self._args_to_config(config, argname='indicators1',
|
||||||
|
logstring='Using indicators1: {}')
|
||||||
|
|
||||||
|
self._args_to_config(config, argname='indicators2',
|
||||||
|
logstring='Using indicators2: {}')
|
||||||
|
|
||||||
|
self._args_to_config(config, argname='plot_limit',
|
||||||
|
logstring='Limiting plot to: {}')
|
||||||
|
|
||||||
|
return config
|
||||||
|
|
||||||
def _validate_config_schema(self, conf: Dict[str, Any]) -> Dict[str, Any]:
|
def _validate_config_schema(self, conf: Dict[str, Any]) -> Dict[str, Any]:
|
||||||
"""
|
"""
|
||||||
Validate the configuration follow the Config Schema
|
Validate the configuration follow the Config Schema
|
||||||
|
|
Loading…
Reference in New Issue
Block a user