Skip to content

Commit

Permalink
Use plot-runmode for plot scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Aug 31, 2019
1 parent 816d942 commit f278fcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freqtrade/plot/plot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
1 change: 1 addition & 0 deletions freqtrade/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ class RunMode(Enum):
BACKTEST = "backtest"
EDGE = "edge"
HYPEROPT = "hyperopt"
PLOT = "plot"
OTHER = "other" # Used for plotting scripts and test

0 comments on commit f278fcf

Please sign in to comment.