diff --git a/freqtrade/plot/plot_utils.py b/freqtrade/plot/plot_utils.py index 11bc9f552..507e86d9d 100644 --- a/freqtrade/plot/plot_utils.py +++ b/freqtrade/plot/plot_utils.py @@ -10,7 +10,7 @@ def start_plot_dataframe(args: Namespace) -> None: """ # Import here to avoid errors if plot-dependencies are not installed. 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) @@ -21,6 +21,6 @@ def start_plot_profit(args: Namespace) -> None: """ # Import here to avoid errors if plot-dependencies are not installed. from freqtrade.plot.plotting import plot_profit - config = setup_utils_configuration(args, RunMode.OTHER) + config = setup_utils_configuration(args, RunMode.PLOT) plot_profit(config) diff --git a/freqtrade/state.py b/freqtrade/state.py index ce2683a77..d4a2adba0 100644 --- a/freqtrade/state.py +++ b/freqtrade/state.py @@ -25,4 +25,5 @@ class RunMode(Enum): BACKTEST = "backtest" EDGE = "edge" HYPEROPT = "hyperopt" + PLOT = "plot" OTHER = "other" # Used for plotting scripts and test