Use plot-runmode for plot scripts
This commit is contained in:
parent
816d942ded
commit
f278fcfc3f
@ -10,7 +10,7 @@ def start_plot_dataframe(args: Namespace) -> None:
|
|||||||
"""
|
"""
|
||||||
# Import here to avoid errors if plot-dependencies are not installed.
|
# Import here to avoid errors if plot-dependencies are not installed.
|
||||||
from freqtrade.plot.plotting import analyse_and_plot_pairs
|
from freqtrade.plot.plotting import analyse_and_plot_pairs
|
||||||
config = setup_utils_configuration(args, RunMode.OTHER)
|
config = setup_utils_configuration(args, RunMode.PLOT)
|
||||||
|
|
||||||
analyse_and_plot_pairs(config)
|
analyse_and_plot_pairs(config)
|
||||||
|
|
||||||
@ -21,6 +21,6 @@ def start_plot_profit(args: Namespace) -> None:
|
|||||||
"""
|
"""
|
||||||
# Import here to avoid errors if plot-dependencies are not installed.
|
# Import here to avoid errors if plot-dependencies are not installed.
|
||||||
from freqtrade.plot.plotting import plot_profit
|
from freqtrade.plot.plotting import plot_profit
|
||||||
config = setup_utils_configuration(args, RunMode.OTHER)
|
config = setup_utils_configuration(args, RunMode.PLOT)
|
||||||
|
|
||||||
plot_profit(config)
|
plot_profit(config)
|
||||||
|
@ -25,4 +25,5 @@ class RunMode(Enum):
|
|||||||
BACKTEST = "backtest"
|
BACKTEST = "backtest"
|
||||||
EDGE = "edge"
|
EDGE = "edge"
|
||||||
HYPEROPT = "hyperopt"
|
HYPEROPT = "hyperopt"
|
||||||
|
PLOT = "plot"
|
||||||
OTHER = "other" # Used for plotting scripts and test
|
OTHER = "other" # Used for plotting scripts and test
|
||||||
|
Loading…
Reference in New Issue
Block a user