diff --git a/freqtrade/arguments.py b/freqtrade/arguments.py index e4c810b23..278f21c97 100644 --- a/freqtrade/arguments.py +++ b/freqtrade/arguments.py @@ -357,6 +357,9 @@ ARGS_PLOT_DATAFRAME = (ARGS_COMMON + ARGS_STRATEGY + ["pairs", "indicators1", "indicators2", "plot_limit", "db_url", "trade_source", "export", "exportfilename", "timerange", "refresh_pairs", "live"]) +ARGS_PLOT_PROFIT = (ARGS_COMMON + ARGS_STRATEGY + + ["pairs", "timerange", "export", "exportfilename"]) + class TimeRange(NamedTuple): """ diff --git a/scripts/plot_profit.py b/scripts/plot_profit.py index 8bc9f2f9a..32bfae9cc 100755 --- a/scripts/plot_profit.py +++ b/scripts/plot_profit.py @@ -24,7 +24,7 @@ import plotly.graph_objs as go from plotly import tools from plotly.offline import plot -from freqtrade.arguments import Arguments, ARGS_PLOT_DATAFRAME +from freqtrade.arguments import Arguments, ARGS_PLOT_PROFIT from freqtrade.configuration import Configuration from freqtrade.data import history from freqtrade.exchange import timeframe_to_seconds @@ -206,11 +206,7 @@ def plot_parse_args(args: List[str]) -> Namespace: :return: args: Array with all arguments """ arguments = Arguments(args, 'Graph profits') - arguments.build_args(optionlist=ARGS_PLOT_DATAFRAME) - - arguments.common_optimize_options() - arguments.backtesting_options() - arguments.common_scripts_options() + arguments.build_args(optionlist=ARGS_PLOT_PROFIT) return arguments.parse_args()