diff --git a/freqtrade/plot/plot_utils.py b/freqtrade/plot/plot_utils.py index 507e86d9d..e132ee2e4 100644 --- a/freqtrade/plot/plot_utils.py +++ b/freqtrade/plot/plot_utils.py @@ -9,10 +9,10 @@ def start_plot_dataframe(args: Namespace) -> None: Entrypoint for dataframe plotting """ # 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 load_and_plot_trades config = setup_utils_configuration(args, RunMode.PLOT) - analyse_and_plot_pairs(config) + load_and_plot_trades(config) def start_plot_profit(args: Namespace) -> None: diff --git a/freqtrade/resolvers/strategy_resolver.py b/freqtrade/resolvers/strategy_resolver.py index 514e9f22b..72c61dcb4 100644 --- a/freqtrade/resolvers/strategy_resolver.py +++ b/freqtrade/resolvers/strategy_resolver.py @@ -24,8 +24,6 @@ class StrategyResolver(IResolver): This class contains all the logic to load custom strategy class """ - __slots__ = ['strategy'] - def __init__(self, config: Optional[Dict] = None) -> None: """ Load the custom class from config parameter @@ -123,7 +121,8 @@ class StrategyResolver(IResolver): current_path = Path(__file__).parent.parent.joinpath('strategy').resolve() abs_paths = [ - config['user_data_dir'].joinpath('strategies'), + Path(config['user_data_dir']).joinpath('strategies'), + config['strategy_path'], current_path, ]